Skip to content

Commit 329a6d0

Browse files
committed
feat: add support to order token attribute on organization config urls
1 parent 57e19a3 commit 329a6d0

9 files changed

Lines changed: 443 additions & 351 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ orbs:
77
jobs:
88
test: # this can be any name you choose
99
docker:
10-
- image: mcr.microsoft.com/playwright:v1.51.1-noble
10+
- image: mcr.microsoft.com/playwright:v1.52.0-noble
1111
resource_class: medium+
1212
parallelism: 10
1313

components/composite/OrderSummary/LineItemTypes/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import LineItemImage from "@commercelayer/react-components/line_items/LineItemIm
88
import LineItemName from "@commercelayer/react-components/line_items/LineItemName"
99
import LineItemOption from "@commercelayer/react-components/line_items/LineItemOption"
1010
import LineItemQuantity from "@commercelayer/react-components/line_items/LineItemQuantity"
11-
import cronParser from "cron-parser"
11+
import { CronExpressionParser } from "cron-parser"
1212
import cronstrue from "cronstrue"
1313
import { useTranslation } from "next-i18next"
1414
import type React from "react"
@@ -79,7 +79,7 @@ export const LineItemTypes: React.FC<Props> = ({ type }) => {
7979
}
8080
let isCronValid = true
8181
try {
82-
cronParser.parseExpression(attributeValue as string)
82+
CronExpressionParser.parse(attributeValue as string)
8383
} catch (e) {
8484
isCronValid = false
8585
}

package.json

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@
7474
],
7575
"dependencies": {
7676
"@commercelayer/js-auth": "^6.7.2",
77-
"@commercelayer/organization-config": "^2.2.0",
77+
"@commercelayer/organization-config": "^2.3.0",
7878
"@commercelayer/react-components": "4.22.0",
79-
"@commercelayer/sdk": "^6.39.0",
80-
"@faker-js/faker": "^9.6.0",
81-
"@headlessui/react": "^2.2.0",
82-
"@next/bundle-analyzer": "^15.2.3",
83-
"@next/eslint-plugin-next": "^15.2.3",
84-
"@playwright/test": "1.51.1",
79+
"@commercelayer/sdk": "^6.41.0",
80+
"@faker-js/faker": "^9.7.0",
81+
"@headlessui/react": "^2.2.2",
82+
"@next/bundle-analyzer": "^15.3.2",
83+
"@next/eslint-plugin-next": "^15.3.2",
84+
"@playwright/test": "1.52.0",
8585
"@tailwindcss/forms": "^0.5.10",
8686
"@types/async-retry": "1.4.8",
87-
"@types/node": "^22.13.10",
87+
"@types/node": "^22.15.17",
8888
"@types/react": "^18.3.12",
8989
"@types/react-gtm-module": "^2.0.4",
9090
"@types/styled-components": "^5.1.34",
@@ -93,20 +93,20 @@
9393
"babel-plugin-macros": "^3.1.0",
9494
"babel-plugin-styled-components": "^2.1.4",
9595
"classnames": "^2.5.1",
96-
"cron-parser": "^4.9.0",
97-
"cronstrue": "^2.56.0",
98-
"dotenv": "^16.4.7",
99-
"i18next": "^24.2.3",
100-
"next": "^15.2.3",
96+
"cron-parser": "^5.1.1",
97+
"cronstrue": "^2.60.0",
98+
"dotenv": "^16.5.0",
99+
"i18next": "^25.1.2",
100+
"next": "^15.3.2",
101101
"next-build-id": "^3.0.0",
102102
"next-i18next": "^15.4.2",
103103
"postcss": "^8.5.3",
104104
"react": "^18.3.1",
105105
"react-dom": "^18.3.1",
106106
"react-gtm-module": "^2.0.11",
107-
"react-i18next": "^15.4.1",
107+
"react-i18next": "^15.5.1",
108108
"react-router-dom": "^6.28.0",
109-
"styled-components": "^6.1.16",
109+
"styled-components": "^6.1.18",
110110
"tailwindcss": "^3.4.14",
111111
"twin.macro": "^3.4.1",
112112
"typescript": "^5.8.3"
@@ -116,13 +116,13 @@
116116
"@semantic-release/changelog": "^6.0.3",
117117
"@semantic-release/commit-analyzer": "^13.0.1",
118118
"@semantic-release/git": "^10.0.1",
119-
"@semantic-release/github": "^11.0.1",
119+
"@semantic-release/github": "^11.0.2",
120120
"@semantic-release/npm": "^12.0.1",
121121
"@semantic-release/release-notes-generator": "^14.0.3",
122-
"npm-check-updates": "^17.1.15",
122+
"npm-check-updates": "^18.0.1",
123123
"semantic-release": "^24.2.3",
124124
"serve": "^14.2.4",
125-
"stylelint": "^16.16.0",
125+
"stylelint": "^16.19.1",
126126
"stylelint-config-standard": "^36.0.1"
127127
},
128128
"resolutions": {
@@ -142,9 +142,7 @@
142142
"preset": "styled-components"
143143
}
144144
},
145-
"cacheDirectories": [
146-
".next/cache"
147-
],
145+
"cacheDirectories": [".next/cache"],
148146
"pnpm": {
149147
"overrides": {
150148
"micromatch@<4.0.8": ">=4.0.8",

playwright.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { PlaywrightTestConfig, devices } from "@playwright/test"
1+
import { type PlaywrightTestConfig, devices } from "@playwright/test"
22
import dotenv from "dotenv"
33

4-
import path from "path"
4+
import path from "node:path"
55

66
dotenv.config({ path: path.resolve(__dirname, "./.env.local") })
77

@@ -22,7 +22,7 @@ const config: PlaywrightTestConfig = {
2222
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
2323
webServer: {
2424
command: "pnpm run dev",
25-
port: 3000,
25+
port: 4000,
2626
timeout: 120 * 1000,
2727
reuseExistingServer: !process.env.CI,
2828
},

0 commit comments

Comments
 (0)