[Snyk] Upgrade: , , , , , autoprefixer, axios, iframe-resizer-react, next, next-sanity, query-string, react-icons, styled-components #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade multiple dependencies.
👯♂ The following dependencies are linked and will therefore be updated together.ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
@commercelayer/js-auth
⚠️ This is a major version upgrade, and may be a breaking change | 2 months ago
⚠️ This is a major version upgrade, and may be a breaking change | a month ago
⚠️ This is a major version upgrade, and may be a breaking change | 21 days ago
⚠️ This is a major version upgrade, and may be a breaking change | a month ago
⚠️ This is a major version upgrade, and may be a breaking change | 2 months ago
⚠️ This is a major version upgrade, and may be a breaking change | 21 days ago
⚠️ This is a major version upgrade, and may be a breaking change | a month ago
⚠️ This is a major version upgrade, and may be a breaking change | 2 months ago
⚠️ This is a major version upgrade, and may be a breaking change | a month ago
⚠️ This is a major version upgrade, and may be a breaking change | 2 months ago
from 4.3.0 to 6.3.1 | 16 versions ahead of your current version
on 2024-07-15
@commercelayer/react-components
from 4.2.2 to 4.15.9 | 185 versions ahead of your current version | a month ago
on 2024-08-23
@headlessui/react
from 1.7.19 to 2.1.3 | 13 versions ahead of your current version
on 2024-08-23
@next/env
from 13.5.7 to 14.2.7 | 345 versions ahead of your current version
on 2024-08-27
@tailwindcss/forms
from 0.4.1 to 0.5.7 | 8 versions ahead of your current version | 10 months ago
on 2023-11-10
autoprefixer
from 10.4.5 to 10.4.20 | 15 versions ahead of your current version | 2 months ago
on 2024-08-02
axios
from 0.26.1 to 1.7.5 | 47 versions ahead of your current version
on 2024-08-23
iframe-resizer-react
from 1.1.1 to 5.1.5 | 1 version ahead of your current version
on 2024-07-09
next
from 13.5.7 to 14.2.7 | 338 versions ahead of your current version
on 2024-08-27
next-sanity
from 5.5.11 to 9.4.7 | 119 versions ahead of your current version
on 2024-08-20
query-string
from 7.1.3 to 9.1.0 | 8 versions ahead of your current version
on 2024-07-22
react-icons
from 4.12.0 to 5.3.0 | 6 versions ahead of your current version
on 2024-08-13
styled-components
from 5.3.11 to 6.1.12 | 60 versions ahead of your current version
on 2024-07-17
Issues fixed by the recommended upgrade:
SNYK-JS-AXIOS-6032459
SNYK-JS-AXIOS-6144788
SNYK-JS-AXIOS-7361793
SNYK-JS-AXIOS-6032459
SNYK-JS-PATHTOREGEXP-7925106
SNYK-JS-AXIOS-6124857
SNYK-JS-AXIOS-6124857
SNYK-JS-NEXT-6828457
Release notes
Package name: @commercelayer/js-auth
What's Changed
🐛 Bug Fix
Full Changelog: v6.3.0...v6.3.1
What's Changed
🚀 Enhancement
jwtVerify
method by @ marcomontalbano in #83Full Changelog: v6.2.2...v6.3.0
What's Changed
🚀 Enhancement
price_list_id
by @ marcomontalbano in #82Full Changelog: v6.2.1...v6.2.2
What's Changed
📝 Documentation
Full Changelog: v6.2.0...v6.2.1
What's Changed
🚀 Enhancement
Other Changes
Full Changelog: v6.1.1...v6.2.0
What's Changed
🐛 Bug Fix
jwtDecode
andcreateAssertion
by @ marcomontalbano in #77Full Changelog: v6.1.0...v6.1.1
What's Changed
🚀 Enhancement
Full Changelog: v6.0.1...v6.1.0
What's Changed
🐛 Bug Fix
encodeBase64URLSafe
method replaces the base64 instead of the payload by @ marcomontalbano in #75📝 Documentation
Full Changelog: v6.0.0...v6.0.1
What's Changed
💥 Breaking Change
🚀 Enhancement
revoke
method by @ marcomontalbano in #72📝 Documentation
💥 Breaking changes
This library now uses the new
https://auth.commercelayer.io/oauth/token
endpoint. We unifiedcore
andprovisioning
into a singleauthenticate
method.- import { provisioning } from '@ commercelayer/js-auth'
# no more valid
- import { core } from '@ commercelayer/js-auth'
# new syntax
+ import { authenticate } from '@ commercelayer/js-auth'
Examples
Core authentication
const auth = await authenticate('client_credentials', {
clientId: '{{ client_id }}',
scope: 'market:id:1234'
})
Provisioning authentication
Read more about how to get the client id and secret.
const auth = await authenticate('client_credentials', {
clientId: '{{ client_id }}',
clientSecret: '{{ client_secret }}',
})
Typescript
const options: AuthenticateOptions<'client_credentials'> = {
clientId: '{{ client_id }}',
scope: 'market:id:1234'
}
const auth = await authenticate('client_credentials', options)
Decode an access token
We added an helper method to decode an access token:
const auth = await authenticate('client_credentials', {
clientId: '{{ application_client_id }}',
scope: '{{ application_scope }}'
})
const decodedJWT = jwtDecode(auth.accessToken)
if (jwtIsSalesChannel(decodedJWT.payload)) {
console.log('organization slug is', decodedJWT.payload.organization.slug)
}
JWT bearer flow
We added support to the JWT bearer flow by introducing a new
createAssertion
method:Once you created the assertion you can get an access token using the
urn:ietf:params:oauth:grant-type:jwt-bearer
grant type:const auth = await authenticate('urn:ietf:params:oauth:grant-type:jwt-bearer', {
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
scope: 'market:code:europe',
assertion
})
console.log('My access token: ', auth.accessToken)
console.log('Expiration date: ', auth.expires)
Revoke an access token
We added the
revoke
method.Any previously generated access tokens (refresh tokens included) can be revoked before their natural expiration date.
await revoke({
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
token: 'a-generated-access-token'
})
Full Changelog: v5.2.1...v6.0.0
What's Changed
📝 Documentation
exports.types
to the package.json by @ marcomontalbano in #73Full Changelog: v6.0.0-beta.1...v6.0.0-beta.2
Package name: @commercelayer/react-components
What's Changed
🐛 Bug Fix
invertAddresses
prop by @ acasazza in #574Full Changelog: v4.15.8...v4.15.9
Full Changelog: v4.15.9-beta.2...v4.15.9-beta.3
Full Changelog: v4.15.9-beta.1...v4.15.9-beta.2
Full Changelog: v4.15.9-beta.0...v4.15.9-beta.1
Full Changelog: v4.15.8...v4.15.9-beta.0
What's Changed
🐛 Bug Fix
Full Changelog: v4.15.7...v4.15.8
Full Changelog: v4.15.8-beta.0...v4.15.8-beta.1
Full Changelog: v4.15.7...v4.15.8-beta.0
What's Changed
🐛 Bug Fix
Full Changelog: v4.15.6...v4.15.7
Full Changelog: v4.15.7-beta.0...v4.15.7-beta.1
Package name: @headlessui/react
Fixed
Transition
component state doesn't change when it becomes hidden (#3372)transition
prop, and after scrolling the page (#3407)Fixed
ListboxOptions
(#3337)unmount
onDialog
works in combination with thetransition
prop onDialogBackdrop
andDialogPanel
components (#3352)Combobox
component when invirtual
mode when options are empty (#3356)anchor
prop (#3357)transition
andfocus
prop combination forPopoverPanel
component (#3361)Popover
components (#3362)Dialog
component (#3365)flushSync
warning forCombobox
component withimmediate
prop enabled (#3366)Fixed
anchor="selection"
positioning (#3324)ComboboxOptions
to useany
instead ofunknown
(#3327)Transition
boundary forDialog
component (#3331)We just released Headless UI v2.1 for React, which dramatically simplifies our transition APIs and adds support for rendering multiple dialogs as siblings. See our announcement blog to learn more.
Changelog
Added
Dialog
components at once (without nesting them) (#3242)DialogBackdrop
component (#3307, #3310)PopoverBackdrop
component to replacePopoverOverlay
(#3308)Fixed
Combobox
open when clicking scrollbar inComboboxOptions
(#3249)ComboboxInput
does not sync with current value while typing (#3259)Combobox
component when using native scrollbar (#3190)ComboboxOptions
while closing (#3304)style
prop onComboboxOptions
,ListboxOptions
,MenuItems
, andPopoverPanel
components (#3250)Checkbox
when it isdisabled
(#3251)useId
instead of React internals (for React 19 compatibility) (#3254)Transition
andTransitionChild
components (#3303)Changed
Tab
andShift+Tab
keys when theListbox
component is open (#3284)