Skip to content

Commit 2c47b3c

Browse files
deps: update all dependencies to the latest
1 parent 354fdd0 commit 2c47b3c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1705
-1550
lines changed

CONTRIBUTING.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Contributing
2+
3+
Fork, then clone the repo.
4+
5+
Set up the project with [Node.js](https://nodejs.org/en) and [pnpm](https://pnpm.io/), then run:
6+
7+
```sh
8+
pnpm i
9+
```
10+
11+
Make sure the tests pass:
12+
13+
```sh
14+
pnpm test
15+
```
16+
17+
If you get the error "_Browser was not found at the configured executablePath_", run the following:
18+
19+
```sh
20+
node node_modules/puppeteer/install.mjs
21+
```
22+
23+
Make your change. Add tests for your change. Make the tests pass.
24+
25+
Push to your fork and [submit a pull request](https://github.com/commercelayer/drop-in.js/compare/).

biome.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
33
"vcs": {
44
"enabled": false,
55
"clientKind": "git",

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
},
3434
"packageManager": "pnpm@10.4.0",
3535
"devDependencies": {
36-
"@biomejs/biome": "2.1.3",
37-
"concurrently": "^9.2.0",
36+
"@biomejs/biome": "2.2.4",
37+
"concurrently": "^9.2.1",
3838
"husky": "^9.1.7",
3939
"lerna": "^8.2.4",
40-
"lint-staged": "^16.1.2",
40+
"lint-staged": "^16.2.0",
4141
"replace-in-file": "^8.3.0",
42-
"typescript": "^5.8.3"
42+
"typescript": "^5.9.2"
4343
},
4444
"resolutions": {
4545
"prismjs": "^1.30.0"

packages/docs/.storybook/preview.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ const preview: Preview = {
141141
const links = document.querySelectorAll(
142142
`[href="${DROP_IN_CSS_FILENAME}"]`,
143143
)
144-
links.forEach((link) => link.remove())
144+
links.forEach((link) => {
145+
link.remove()
146+
})
145147
}
146148

147149
if (minicartCssEnabled) {
@@ -153,7 +155,9 @@ const preview: Preview = {
153155
const links = document.querySelectorAll(
154156
`[href="${MINICART_CSS_FILENAME}"]`,
155157
)
156-
links.forEach((link) => link.remove())
158+
links.forEach((link) => {
159+
link.remove()
160+
})
157161
}
158162

159163
return story()

packages/docs/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
"email": "marco.montalbano@commercelayer.io"
1818
},
1919
"devDependencies": {
20-
"@babel/core": "^7.28.0",
21-
"@babel/preset-env": "^7.28.0",
20+
"@babel/core": "^7.28.4",
21+
"@babel/preset-env": "^7.28.3",
2222
"@babel/preset-react": "^7.27.1",
2323
"@babel/preset-typescript": "^7.27.1",
24-
"@storybook/addon-docs": "^9.0.18",
25-
"@storybook/addon-links": "^9.0.18",
26-
"@storybook/html-vite": "^9.0.18",
27-
"@storybook/icons": "^1.4.0",
24+
"@storybook/addon-docs": "^9.1.7",
25+
"@storybook/addon-links": "^9.1.7",
26+
"@storybook/html-vite": "^9.1.7",
27+
"@storybook/icons": "^1.6.0",
2828
"@types/common-tags": "^1.8.4",
29-
"@types/node": "^20.19.9",
29+
"@types/node": "^20.19.17",
3030
"@types/react": "^19",
3131
"@types/react-syntax-highlighter": "^15.5.13",
3232
"babel-loader": "^10.0.0",
@@ -35,12 +35,12 @@
3535
"nodemon": "^3.1.10",
3636
"react": "^19",
3737
"react-dom": "^19",
38-
"react-syntax-highlighter": "^15.6.1",
38+
"react-syntax-highlighter": "^15.6.6",
3939
"remark-gfm": "^4.0.1",
40-
"sass": "^1.89.2",
41-
"storybook": "^9.0.18",
42-
"typescript": "^5.8.3",
43-
"vite": "^7.0.6"
40+
"sass": "^1.93.0",
41+
"storybook": "^9.1.7",
42+
"typescript": "^5.9.2",
43+
"vite": "^7.1.7"
4444
},
4545
"dependencies": {
4646
"@commercelayer/drop-in.js": "workspace:^2.17.0",

packages/drop-in/jest.e2e.helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { E2EPage } from "@stencil/core/testing"
2-
import type { Token } from "#apis/commercelayer/client"
3-
import type { CommerceLayerConfig } from "#apis/commercelayer/config"
2+
import type { Token } from "@/apis/commercelayer/client"
3+
import type { CommerceLayerConfig } from "@/apis/commercelayer/config"
44

55
type Cookie = Awaited<ReturnType<E2EPage["cookies"]>>[number]
66

packages/drop-in/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,30 +47,30 @@
4747
"dependencies": {
4848
"@commercelayer/js-auth": "^6.7.2",
4949
"@commercelayer/organization-config": "^2.4.0",
50-
"@commercelayer/sdk": "^6.45.0",
50+
"@commercelayer/sdk": "^6.46.0",
5151
"@types/lodash-es": "^4.17.12",
5252
"iframe-resizer": "4.3.11",
5353
"js-cookie": "^3.0.5",
5454
"lodash-es": "^4.17.21",
55-
"type-fest": "^4.41.0"
55+
"type-fest": "^5.0.1"
5656
},
5757
"peerDependencies": {
5858
"@stencil/core": "^4.0.0"
5959
},
6060
"devDependencies": {
61-
"@stencil/core": "4.36.1",
61+
"@stencil/core": "4.37.1",
6262
"@stencil/sass": "^3.2.2",
6363
"@types/iframe-resizer": "^4.0.0",
6464
"@types/jest": "^29.5.14",
6565
"@types/js-cookie": "^3.0.6",
66-
"@types/node": "^20.19.9",
66+
"@types/node": "^20.19.17",
6767
"jest": "^29.7.0",
6868
"jest-cli": "^29.7.0",
6969
"nodemon": "^3.1.10",
70-
"puppeteer": "24.15.0",
71-
"sass": "^1.89.2",
72-
"ts-jest": "^29.4.0",
73-
"typescript": "^5.8.3"
70+
"puppeteer": "24.22.0",
71+
"sass": "^1.93.0",
72+
"ts-jest": "^29.4.4",
73+
"typescript": "^5.9.2"
7474
},
7575
"license": "MIT",
7676
"engines": {

packages/drop-in/src/apis/commercelayer/account.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { getAccessToken } from "#apis/commercelayer/client"
2-
import { getConfig, getOrganizationConfig } from "#apis/commercelayer/config"
3-
import { getClosestLocationHref } from "#utils/url"
1+
import { getAccessToken } from "@/apis/commercelayer/client"
2+
import { getConfig, getOrganizationConfig } from "@/apis/commercelayer/config"
3+
import { getClosestLocationHref } from "@/utils/url"
44

55
export async function getMyAccountUrl(): Promise<string | undefined> {
66
const config = getConfig()

packages/drop-in/src/apis/commercelayer/bundles/bundles.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Bundle, Inventory } from "#apis/types"
1+
import type { Bundle, Inventory } from "@/apis/types"
22
import { getBundleInventory } from "./bundles"
33

44
function mockSkuListItem(

packages/drop-in/src/apis/commercelayer/bundles/bundles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { fireEvent } from "#apis/event"
2-
import type { Bundle, GetBundle, Inventory } from "#apis/types"
1+
import { fireEvent } from "@/apis/event"
2+
import type { Bundle, GetBundle, Inventory } from "@/apis/types"
33
import { memoize } from "../../../utils/utils"
44
import { createClient } from "../client"
55
import { getConfig } from "../config"

0 commit comments

Comments
 (0)