@faststore/core 4.1.0-dev.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
 
2
- > @faststore/core@4.0.1-dev.2 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.1.0-dev.1 generate /home/runner/work/faststore/faststore/packages/core
3
3
  > pnpm run gen-types && pnpm run cache-graphql
4
4
 
5
5
 
6
- > @faststore/core@4.0.1-dev.2 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.1.0-dev.1 gen-types /home/runner/work/faststore/faststore/packages/core
7
7
  > node ../cli/bin/run generate-types .
8
8
 
9
9
  [STARTED] Parse Configuration
@@ -19,7 +19,7 @@
19
19
  [COMPLETED] Generate to /home/runner/work/faststore/faststore/packages/core/@generated/
20
20
  [COMPLETED] Generate outputs
21
21
 
22
- > @faststore/core@4.0.1-dev.2 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.1.0-dev.1 cache-graphql /home/runner/work/faststore/faststore/packages/core
23
23
  > node ../cli/bin/run cache-graphql --config=./discovery.config.default.js --queries=./@generated/persisted-documents.json
24
24
 
25
25
  [Info] - Config file location: /home/runner/work/faststore/faststore/packages/core/discovery.config.default.js
@@ -1,48 +1,48 @@
1
1
 
2
- > @faststore/core@4.0.1-dev.2 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.1.0-dev.1 test /home/runner/work/faststore/faststore/packages/core
3
3
  > vitest run
4
4
 
5
5
 
6
6
   RUN  v4.0.7 /home/runner/work/faststore/faststore/packages/core
7
7
 
8
- ✓  node  test/utils/match-url.test.ts (10 tests) 31ms
9
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 82ms
10
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 27ms
8
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 75ms
9
+ ✓  node  test/utils/match-url.test.ts (10 tests) 46ms
10
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 28ms
11
11
  stderr | test/sdk/localization/store-url.browser.test.ts
12
12
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
13
13
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:119:27)
14
14
  at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
15
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:342:23)
15
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:353:23)
16
16
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
17
17
 
18
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 56ms
18
19
  stderr | test/sdk/localization/store-url.browser.test.ts
19
20
  Error in optimistic validation: ReferenceError: Cannot access '__vite_ssr_import_4__' before initialization
20
21
  at getSettings (/home/runner/work/faststore/faststore/packages/core/src/sdk/localization/useLocalizationConfig.tsx:126:45)
21
22
  at validateSession (/home/runner/work/faststore/faststore/packages/core/src/sdk/session/index.ts:144:22)
22
23
  at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
23
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:342:23)
24
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:353:23)
24
25
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
25
26
 
26
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 20ms
27
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 35ms
28
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 26ms
29
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 120ms
30
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 13ms
31
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 110ms
32
- ✓  node  test/server/cms/global.test.ts (3 tests) 14ms
33
- ✓  node  test/server/content/service.test.ts (5 tests) 13ms
34
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 18ms
35
- ✓  node  test/sdk/localization/store-url.test.ts (1 test) 18ms
36
- ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 12ms
37
- ✓  node  test/pages/api/preview.test.ts (2 tests) 29ms
38
- ✓  node  test/server/cms/index.test.ts (2 tests) 17ms
39
- ✓  node  test/server/index.test.ts (7 tests) 1380ms
40
- ✓ should return a valid merged GraphQL schema  351ms
41
- ✓ should exist with its plugins  521ms
42
- ✓ should handle options and execute  469ms
27
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 15ms
28
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 116ms
29
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 24ms
30
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 15ms
31
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 86ms
32
+ ✓  node  test/server/cms/global.test.ts (3 tests) 17ms
33
+ ✓  node  test/server/content/service.test.ts (5 tests) 27ms
34
+ ✓  node  test/sdk/localization/store-url.test.ts (1 test) 11ms
35
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 31ms
36
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 14ms
37
+ ✓  node  test/pages/api/preview.test.ts (2 tests) 20ms
38
+ ✓  node  test/server/cms/index.test.ts (2 tests) 13ms
39
+ ✓  node  test/server/index.test.ts (7 tests) 1609ms
40
+ ✓ should return a valid merged GraphQL schema  419ms
41
+ ✓ should exist with its plugins  325ms
42
+ ✓ should handle options and execute  833ms
43
43
 
44
44
   Test Files  17 passed (17)
45
45
   Tests  203 passed (203)
46
-  Start at  17:05:10
47
-  Duration  13.05s (transform 5.17s, setup 0ms, collect 15.92s, tests 1.97s, environment 7.50s, prepare 664ms)
46
+  Start at  21:20:00
47
+  Duration  13.13s (transform 5.18s, setup 0ms, collect 15.74s, tests 2.20s, environment 7.60s, prepare 650ms)
48
48
 
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 4.1.0 (2026-05-11)
7
+
8
+ ### Features
9
+
10
+ - version bump 4.1.0 ([#3310](https://github.com/vtex/faststore/issues/3310)) ([1ea7bac](https://github.com/vtex/faststore/commit/1ea7bac649d783e50a9e79f8fe412009ae4a87f7)), closes [#3309](https://github.com/vtex/faststore/issues/3309) [#3308](https://github.com/vtex/faststore/issues/3308) [#3306](https://github.com/vtex/faststore/issues/3306) [#3304](https://github.com/vtex/faststore/issues/3304) [#3301](https://github.com/vtex/faststore/issues/3301)
11
+
12
+ # [4.1.0-dev.1](https://github.com/vtex/faststore/compare/v4.1.0-dev.0...v4.1.0-dev.1) (2026-05-11)
13
+
14
+ **Note:** Version bump only for package @faststore/core
15
+
6
16
  # [4.1.0-dev.0](https://github.com/vtex/faststore/compare/v4.0.1-dev.2...v4.1.0-dev.0) (2026-05-11)
7
17
 
8
18
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "4.1.0-dev.0",
3
+ "version": "4.1.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,23 +8,12 @@
8
8
  "directory": "packages/core"
9
9
  },
10
10
  "browserslist": "supports es6-module and not dead",
11
- "packageManager": "pnpm@10.28.0",
12
11
  "exports": {
13
12
  ".": "./index.ts",
14
13
  "./api": "./api/index.ts",
15
14
  "./experimental": "./src/experimental/index.ts",
16
15
  "./experimental/server": "./src/experimental/server/index.ts"
17
16
  },
18
- "scripts": {
19
- "test:e2e": "cypress open",
20
- "test": "vitest run",
21
- "lhci": "lhci autorun",
22
- "partytown": "partytown copylib ./public/~partytown",
23
- "gen-types": "node ../cli/bin/run generate-types .",
24
- "cache-graphql": "node ../cli/bin/run cache-graphql --config=./discovery.config.default.js --queries=./@generated/persisted-documents.json",
25
- "generate": "pnpm run gen-types && pnpm run cache-graphql ",
26
- "dev": "pnpm run generate && next dev"
27
- },
28
17
  "engines": {
29
18
  "node": ">=20"
30
19
  },
@@ -33,25 +22,20 @@
33
22
  },
34
23
  "sideEffects": false,
35
24
  "dependencies": {
36
- "@antfu/ni": "catalog:",
25
+ "@antfu/ni": "0.21.12",
37
26
  "@builder.io/partytown": "^0.6.1",
38
- "@envelop/core": "catalog:",
39
- "@envelop/graphql-jit": "catalog:",
40
- "@envelop/parser-cache": "catalog:",
41
- "@envelop/validation-cache": "catalog:",
42
- "@faststore/api": "4.1.0-dev.0",
43
- "@faststore/diagnostics": "4.1.0-dev.0",
44
- "@faststore/lighthouse": "4.1.0-dev.0",
45
- "@faststore/sdk": "4.1.0-dev.0",
46
- "@faststore/ui": "4.1.0-dev.0",
47
- "@graphql-codegen/cli": "catalog:",
27
+ "@envelop/core": "^5",
28
+ "@envelop/graphql-jit": "^11",
29
+ "@envelop/parser-cache": "^10",
30
+ "@envelop/validation-cache": "^10",
31
+ "@graphql-codegen/cli": "6.1.1",
48
32
  "@graphql-codegen/client-preset": "4.2.6",
49
- "@graphql-codegen/typescript": "catalog:",
33
+ "@graphql-codegen/typescript": "4.0.7",
50
34
  "@graphql-codegen/typescript-operations": "4.2.1",
51
35
  "@graphql-tools/load-files": "^7.0.0",
52
- "@graphql-tools/merge": "catalog:",
53
- "@graphql-tools/schema": "catalog:",
54
- "@graphql-tools/utils": "catalog:",
36
+ "@graphql-tools/merge": "9.1.1",
37
+ "@graphql-tools/schema": "10.0.25",
38
+ "@graphql-tools/utils": "10.10.1",
55
39
  "@graphql-typed-document-node/core": "^3.2.0",
56
40
  "@lexical/code": "^0.34.0",
57
41
  "@lexical/headless": "^0.34.0",
@@ -61,40 +45,45 @@
61
45
  "@lexical/react": "^0.34.0",
62
46
  "@lexical/rich-text": "^0.34.0",
63
47
  "@lhci/cli": "^0.15.1",
64
- "@types/react": "catalog:",
48
+ "@types/react": "^18.3.27",
65
49
  "@vtex/client-cms": "^0.2.16",
66
50
  "@vtex/client-cp": "0.5.1",
67
51
  "@vtex/prettier-config": "1.0.0",
68
52
  "autoprefixer": "^10.4.0",
69
- "cookie": "catalog:",
53
+ "cookie": "^0.7.0",
70
54
  "css-loader": "^6.7.1",
71
55
  "deepmerge": "^4.3.1",
72
56
  "draftjs-to-html": "^0.9.1",
73
- "fast-deep-equal": "catalog:",
57
+ "fast-deep-equal": "^3.1.3",
74
58
  "fs-extra": "^10.1.0",
75
59
  "idb-keyval": "^5.1.3",
76
60
  "isomorphic-unfetch": "^3.1.0",
77
61
  "lexical": "^0.34.0",
78
- "next": "catalog:",
62
+ "next": "^16",
79
63
  "next-seo": "^6.6.0",
80
64
  "postcss": "^8.4.4",
81
65
  "prettier": "^2.2.0",
82
- "react-intersection-observer": "catalog:",
66
+ "react-intersection-observer": "^8.32.5",
83
67
  "sass": "^1.97.0",
84
68
  "sass-loader": "^12.6.0",
85
69
  "sharp": "^0.32.6",
86
70
  "style-loader": "^3.3.1",
87
71
  "swr": "^2.2.5",
88
- "use-sync-external-store": "^1.6.0"
72
+ "use-sync-external-store": "^1.6.0",
73
+ "@faststore/api": "4.1.0",
74
+ "@faststore/diagnostics": "4.1.0",
75
+ "@faststore/lighthouse": "4.1.0",
76
+ "@faststore/ui": "4.1.0",
77
+ "@faststore/sdk": "4.1.0"
89
78
  },
90
79
  "devDependencies": {
91
80
  "@cypress/code-coverage": "^3.12.1",
92
- "@envelop/testing": "catalog:",
81
+ "@envelop/testing": "^10",
93
82
  "@testing-library/cypress": "^10.0.1",
94
- "@testing-library/react": "catalog:",
83
+ "@testing-library/react": "14.3.1",
95
84
  "@types/cookie": "^0.6.0",
96
85
  "@types/fs-extra": "^9.0.13",
97
- "@types/node": "catalog:",
86
+ "@types/node": "20.19.13",
98
87
  "@vitejs/plugin-react": "^5.1.2",
99
88
  "@vtex/prettier-config": "1.0.0",
100
89
  "axe-core": "^4.8.1",
@@ -102,16 +91,25 @@
102
91
  "cypress-axe": "^1.5.0",
103
92
  "cypress-wait-until": "^2.0.1",
104
93
  "dotenv": "^8.2.0",
105
- "graphql": "catalog:",
94
+ "graphql": "16.11.0",
106
95
  "is-ci": "^3.0.0",
107
96
  "jsdom": "^27.4.0",
108
- "typescript": "catalog:",
109
- "vitest": "catalog:"
97
+ "typescript": "5.9.3",
98
+ "vitest": "4.0.7"
110
99
  },
111
100
  "peerDependencies": {
112
- "graphql": "catalog:",
113
- "react": "catalog:",
114
- "react-dom": "catalog:"
101
+ "graphql": "16.11.0",
102
+ "react": "18.2.0",
103
+ "react-dom": "18.2.0"
115
104
  },
116
- "gitHead": "e356beb2c1bfd3b06bc2a383c01d5957d18c8f34"
117
- }
105
+ "scripts": {
106
+ "test:e2e": "cypress open",
107
+ "test": "vitest run",
108
+ "lhci": "lhci autorun",
109
+ "partytown": "partytown copylib ./public/~partytown",
110
+ "gen-types": "node ../cli/bin/run generate-types .",
111
+ "cache-graphql": "node ../cli/bin/run cache-graphql --config=./discovery.config.default.js --queries=./@generated/persisted-documents.json",
112
+ "generate": "pnpm run gen-types && pnpm run cache-graphql ",
113
+ "dev": "pnpm run generate && next dev"
114
+ }
115
+ }