+3
.github/workflows/ci.yml
+3
.github/workflows/ci.yml
+1
.github/workflows/release.yml
+1
.github/workflows/release.yml
+15
exchanges/auth/jsr.json
+15
exchanges/auth/jsr.json
+15
exchanges/context/jsr.json
+15
exchanges/context/jsr.json
+15
exchanges/execute/jsr.json
+15
exchanges/execute/jsr.json
+17
exchanges/graphcache/jsr.json
+17
exchanges/graphcache/jsr.json
···
1
+
{
2
+
"name": "@urql/exchange-graphcache",
3
+
"version": "7.0.2",
4
+
"exports": {
5
+
".": "./src/index.ts",
6
+
"./extras": "./src/extras/index.ts",
7
+
"./default-storage": "./src/default-storage/index.ts"
8
+
},
9
+
"exclude": [
10
+
"node_modules",
11
+
"cypress",
12
+
"**/*.test.*",
13
+
"**/*.spec.*",
14
+
"**/*.test.*.snap",
15
+
"**/*.spec.*.snap"
16
+
]
17
+
}
+15
exchanges/persisted/jsr.json
+15
exchanges/persisted/jsr.json
+15
exchanges/populate/jsr.json
+15
exchanges/populate/jsr.json
+15
exchanges/refocus/jsr.json
+15
exchanges/refocus/jsr.json
+15
exchanges/request-policy/jsr.json
+15
exchanges/request-policy/jsr.json
+15
exchanges/retry/jsr.json
+15
exchanges/retry/jsr.json
+4
-1
package.json
+4
-1
package.json
···
8
8
"postinstall": "node ./scripts/prepare/postinstall.js",
9
9
"pack": "node ./scripts/actions/pack-all.mjs",
10
10
"changeset:version": "node ./scripts/changesets/version.mjs",
11
-
"changeset:publish": "changeset publish"
11
+
"changeset:publish": "changeset publish && pnpm jsr",
12
+
"jsr": "pnpm --filter @urql/core jsr",
13
+
"jsr:dryrun": "pnpm --filter @urql/core jsr --dry-run"
12
14
},
13
15
"eslintConfig": {
14
16
"root": true,
···
88
90
"husky-v4": "^4.3.8",
89
91
"invariant": "^2.2.4",
90
92
"jsdom": "^21.1.1",
93
+
"jsr": "^0.12.4",
91
94
"lint-staged": "^13.2.2",
92
95
"npm-packlist": "^7.0.4",
93
96
"npm-run-all": "^4.1.5",
+16
packages/core/jsr.json
+16
packages/core/jsr.json
···
1
+
{
2
+
"name": "@urql/core",
3
+
"version": "5.0.2",
4
+
"exports": {
5
+
".": "./src/index.ts",
6
+
"./internal": "./src/internal/index.ts"
7
+
},
8
+
"exclude": [
9
+
"node_modules",
10
+
"cypress",
11
+
"**/*.test.*",
12
+
"**/*.spec.*",
13
+
"**/*.test.*.snap",
14
+
"**/*.spec.*.snap"
15
+
]
16
+
}
+2
-1
packages/core/package.json
+2
-1
packages/core/package.json
···
51
51
"lint": "eslint --ext=js,jsx,ts,tsx .",
52
52
"build": "rollup -c ../../scripts/rollup/config.mjs",
53
53
"prepare": "node ../../scripts/prepare/index.js",
54
-
"prepublishOnly": "run-s clean build"
54
+
"prepublishOnly": "run-s clean build",
55
+
"jsr": "jsr publish"
55
56
},
56
57
"dependencies": {
57
58
"@0no-co/graphql.web": "^1.0.5",
+1
-1
packages/core/src/utils/error.ts
+1
-1
packages/core/src/utils/error.ts
+4
-1
packages/core/src/utils/formatDocument.ts
+4
-1
packages/core/src/utils/formatDocument.ts
···
74
74
return node as FormattedNode<T>;
75
75
};
76
76
77
-
const formattedDocs = new Map<number, KeyedDocumentNode>();
77
+
const formattedDocs: Map<number, KeyedDocumentNode> = new Map<
78
+
number,
79
+
KeyedDocumentNode
80
+
>();
78
81
79
82
/** Formats a GraphQL document to add `__typename` fields and process client-side directives.
80
83
*
+9
-3
packages/core/src/utils/request.ts
+9
-3
packages/core/src/utils/request.ts
···
27
27
const GRAPHQL_STRING_RE = /("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g;
28
28
const REPLACE_CHAR_RE = /(?:#[^\n\r]+)?(?:[\r\n]+|$)/g;
29
29
30
-
const replaceOutsideStrings = (str: string, idx: number) =>
30
+
const replaceOutsideStrings = (str: string, idx: number): string =>
31
31
idx % 2 === 0 ? str.replace(REPLACE_CHAR_RE, '\n') : str;
32
32
33
33
/** Sanitizes a GraphQL document string by replacing comments and redundant newlines in it. */
34
34
const sanitizeDocument = (node: string): string =>
35
35
node.split(GRAPHQL_STRING_RE).map(replaceOutsideStrings).join('').trim();
36
36
37
-
const prints = new Map<DocumentNode | DefinitionNode, string>();
38
-
const docs = new Map<HashValue, KeyedDocumentNode>();
37
+
const prints: Map<DocumentNode | DefinitionNode, string> = new Map<
38
+
DocumentNode | DefinitionNode,
39
+
string
40
+
>();
41
+
const docs: Map<HashValue, KeyedDocumentNode> = new Map<
42
+
HashValue,
43
+
KeyedDocumentNode
44
+
>();
39
45
40
46
/** A cached printing function for GraphQL documents.
41
47
*
+1
-1
packages/core/src/utils/result.ts
+1
-1
packages/core/src/utils/result.ts
+2
-2
packages/core/src/utils/variables.ts
+2
-2
packages/core/src/utils/variables.ts
+15
packages/introspection/jsr.json
+15
packages/introspection/jsr.json
+16
packages/next-urql/jsr.json
+16
packages/next-urql/jsr.json
+15
packages/preact-urql/jsr.json
+15
packages/preact-urql/jsr.json
+13
packages/react-urql/jsr.json
+13
packages/react-urql/jsr.json
+15
packages/storage-rn/jsr.json
+15
packages/storage-rn/jsr.json
+15
packages/svelte-urql/jsr.json
+15
packages/svelte-urql/jsr.json
+15
packages/vue-urql/jsr.json
+15
packages/vue-urql/jsr.json
+72
-46
pnpm-lock.yaml
+72
-46
pnpm-lock.yaml
···
124
124
jsdom:
125
125
specifier: ^21.1.1
126
126
version: 21.1.1
127
+
jsr:
128
+
specifier: ^0.12.4
129
+
version: 0.12.4
127
130
lint-staged:
128
131
specifier: ^13.2.2
129
132
version: 13.2.2
···
594
597
/@0no-co/graphql.web@1.0.5(graphql@16.6.0):
595
598
resolution: {integrity: sha512-/ODdeNNFksS9hUvpjWFldMEpq0OqCFEIV3NVM0eU8HLUYU0Szf+2iKvr63kkbGchQwk2/1IxPF1PfoCabVkgLw==}
596
599
peerDependencies:
597
-
graphql: ^16.6.0
600
+
graphql: ^14.0.0 || ^15.0.0 || ^16.0.0
598
601
peerDependenciesMeta:
599
602
graphql:
600
603
optional: true
···
2038
2041
/@cypress/react@7.0.2(@types/react@17.0.52)(cypress@12.8.1)(react-dom@17.0.2)(react@17.0.2):
2039
2042
resolution: {integrity: sha512-TTV7XNMDOO9mZUFWiGbd44Od/jqMVX/QbHYKQmK1XT3nIVFs0EvKJuHJmwN7wxLOR/+6twtyX6vTD8z8XBTliQ==}
2040
2043
peerDependencies:
2041
-
'@types/react': ^17.0.39
2044
+
'@types/react': ^16.9.16 || ^17.0.0
2042
2045
cypress: '*'
2043
-
react: ^17.0.2 || 17
2044
-
react-dom: ^17.0.2 || 17
2046
+
react: ^=16.x || ^=17.x || 17
2047
+
react-dom: ^=16.x || ^=17.x || 17
2045
2048
peerDependenciesMeta:
2046
2049
'@types/react':
2047
2050
optional: true
···
2293
2296
/@mdx-js/react@1.6.22(react@17.0.2):
2294
2297
resolution: {integrity: sha512-TDoPum4SHdfPiGSAaRBw7ECyI8VaHpK8GJugbJIJuqyh6kzw9ZLJZW3HGL3NNrJGxcAixUvqROm+YuQOo5eXtg==}
2295
2298
peerDependencies:
2296
-
react: ^17.0.2 || 17
2299
+
react: ^16.13.1 || ^17.0.0 || 17
2297
2300
dependencies:
2298
2301
react: 17.0.2
2299
2302
dev: false
···
2730
2733
/@reach/router@1.3.4(react-dom@17.0.2)(react@17.0.2):
2731
2734
resolution: {integrity: sha512-+mtn9wjlB9NN2CNnnC/BRYtwdKBfSyyasPYraNAyvaV1occr/5NnB4CVzjEZipNHwYebQwcndGUmpFzxAUoqSA==}
2732
2735
peerDependencies:
2733
-
react: ^17.0.2 || 17
2734
-
react-dom: ^17.0.2 || 17
2736
+
react: 15.x || 16.x || 16.4.0-alpha.0911da3 || 17
2737
+
react-dom: 15.x || 16.x || 16.4.0-alpha.0911da3 || 17
2735
2738
dependencies:
2736
2739
create-react-context: 0.3.0(prop-types@15.8.1)(react@17.0.2)
2737
2740
invariant: 2.2.4
···
2901
2904
/@testing-library/react-hooks@5.1.2(react-dom@17.0.2)(react-test-renderer@17.0.2)(react@17.0.2):
2902
2905
resolution: {integrity: sha512-jwhtDYZ5gQUIX8cmVCVdtwNvuF5EiCOWjokRlTV+o/V0GdtRZDykUllL1OXq5PS4+J33wGLNQeeWzEHcWrH7tg==}
2903
2906
peerDependencies:
2904
-
react: ^17.0.2 || 17
2905
-
react-dom: ^17.0.2 || 17
2907
+
react: '>=16.9.0 || 17'
2908
+
react-dom: '>=16.9.0 || 17'
2906
2909
react-test-renderer: '>=16.9.0'
2907
2910
peerDependenciesMeta:
2908
2911
react-dom:
···
2925
2928
resolution: {integrity: sha512-TXMCg0jT8xmuU8BkKMtp8l7Z50Ykew5WNX8UoIKTaLFwKkP2+1YDhOLA2Ga3wY4x29jyntk7EWfum0kjlYiSjQ==}
2926
2929
engines: {node: '>=10'}
2927
2930
peerDependencies:
2928
-
react: ^17.0.2 || 17
2929
-
react-dom: ^17.0.2 || 17
2931
+
react: '*'
2932
+
react-dom: '*'
2930
2933
dependencies:
2931
2934
'@babel/runtime': 7.22.5
2932
2935
'@testing-library/dom': 7.30.4
···
4098
4101
/babel-plugin-styled-components@1.12.0(styled-components@5.2.3):
4099
4102
resolution: {integrity: sha512-FEiD7l5ZABdJPpLssKXjBUJMYqzbcNzBowfXDCdJhOpbhWiewapUaY+LZGT8R4Jg2TwOjGjG4RKeyrO5p9sBkA==}
4100
4103
peerDependencies:
4101
-
styled-components: ^5.2.3 || 5
4104
+
styled-components: '>= 2 || 5'
4102
4105
dependencies:
4103
4106
'@babel/helper-annotate-as-pure': 7.18.6
4104
4107
'@babel/helper-module-imports': 7.21.4
···
5317
5320
resolution: {integrity: sha512-dNldIoSuNSvlTJ7slIKC/ZFGKexBMBrrcc+TTe1NdmROnaASuLPvqpwj9v4XS4uXZ8+YPu0sNmShX2rXI5LNsw==}
5318
5321
peerDependencies:
5319
5322
prop-types: ^15.0.0
5320
-
react: ^17.0.2 || 17
5323
+
react: ^0.14.0 || ^15.0.0 || ^16.0.0 || 17
5321
5324
dependencies:
5322
5325
gud: 1.0.0
5323
5326
prop-types: 15.8.1
···
7370
7373
resolution: {integrity: sha512-jvHSQMXujUtncyT3ObkoQgwOzkxdnnAs7XYgJDGSqhGqPF+LZ0y4rS5b6XzaN2BR3hG2e7isVtCNOmb7gxNuYw==}
7371
7374
engines: {node: '>= 0.12.0', npm: '>= 2.0.0'}
7372
7375
peerDependencies:
7373
-
styled-components: ^5.2.3 || 5
7376
+
styled-components: '>= 4.0.0 || 5'
7374
7377
dependencies:
7375
7378
styled-components: 5.2.3(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
7376
7379
dev: false
···
9068
9071
verror: 1.10.0
9069
9072
dev: true
9070
9073
9074
+
/jsr@0.12.4:
9075
+
resolution: {integrity: sha512-ZWDvqQE8014fWz9QBrkiuvRQ8mH97PRD13VIDzoMXDem3ff2S+wfXw+YAvrZE0aKzxh9FuHJX0HQRQ2MUHshig==}
9076
+
hasBin: true
9077
+
dependencies:
9078
+
kolorist: 1.8.0
9079
+
node-stream-zip: 1.15.0
9080
+
semiver: 1.1.0
9081
+
dev: true
9082
+
9071
9083
/jsx-ast-utils@3.3.5:
9072
9084
resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}
9073
9085
engines: {node: '>=4.0'}
···
9117
9129
/kleur@4.1.5:
9118
9130
resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
9119
9131
engines: {node: '>=6'}
9132
+
dev: true
9133
+
9134
+
/kolorist@1.8.0:
9135
+
resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==}
9120
9136
dev: true
9121
9137
9122
9138
/last-call-webpack-plugin@3.0.0:
···
9744
9760
deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
9745
9761
peerDependencies:
9746
9762
prop-types: ^15.0.0
9747
-
react: ^17.0.2 || 17
9763
+
react: ^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || 17
9748
9764
dependencies:
9749
9765
'@babel/runtime': 7.22.5
9750
9766
prop-types: 15.8.1
···
10039
10055
peerDependencies:
10040
10056
fibers: '>= 3.1.0'
10041
10057
node-sass: ^6.0.0 || ^7.0.0
10042
-
react: ^17.0.2 || 17
10043
-
react-dom: ^17.0.2 || 17
10058
+
react: ^18.0.0-0 || 17
10059
+
react-dom: ^18.0.0-0 || 17
10044
10060
sass: ^1.3.0
10045
10061
peerDependenciesMeta:
10046
10062
fibers:
···
10170
10186
10171
10187
/node-releases@2.0.10:
10172
10188
resolution: {integrity: sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==}
10189
+
10190
+
/node-stream-zip@1.15.0:
10191
+
resolution: {integrity: sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==}
10192
+
engines: {node: '>=0.12.0'}
10193
+
dev: true
10173
10194
10174
10195
/nopt@6.0.0:
10175
10196
resolution: {integrity: sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==}
···
11434
11455
/prism-react-renderer@1.2.0(react@17.0.2):
11435
11456
resolution: {integrity: sha512-GHqzxLYImx1iKN1jJURcuRoA/0ygCcNhfGw1IT8nPIMzarmKQ3Nc+JcG0gi8JXQzuh0C5ShE4npMIoqNin40hg==}
11436
11457
peerDependencies:
11437
-
react: ^17.0.2 || 17
11458
+
react: '>=0.14.9 || 17'
11438
11459
dependencies:
11439
11460
react: 17.0.2
11440
11461
dev: false
···
11684
11705
/react-dom@17.0.2(react@17.0.2):
11685
11706
resolution: {integrity: sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==}
11686
11707
peerDependencies:
11687
-
react: ^17.0.2 || 17
11708
+
react: 17.0.2 || 17
11688
11709
dependencies:
11689
11710
loose-envify: 1.4.0
11690
11711
object-assign: 4.1.1
···
11695
11716
resolution: {integrity: sha512-W3xCd9zXnanqrTUeViceufD3mIW8Ut29BUD+S2f0eO2XCOU8b6UrJfY46RDGe5lxCJzfe4j0yvIfh0RbTZhKJw==}
11696
11717
engines: {node: '>=10', npm: '>=6'}
11697
11718
peerDependencies:
11698
-
react: ^17.0.2 || 17
11719
+
react: '>=16.13.1 || 17'
11699
11720
dependencies:
11700
11721
'@babel/runtime': 7.22.5
11701
11722
react: 17.0.2
···
11707
11728
/react-from-dom@0.3.1(react@17.0.2):
11708
11729
resolution: {integrity: sha512-PeNBa8iuzoD7qHA9O7YpGnXFvC+XFFwStmFh2/r2zJAvEIaRg6EwOj+EPcDIFwyYBhqPIItxIx/dGdeWiFivjQ==}
11709
11730
peerDependencies:
11710
-
react: ^17.0.2 || 17
11731
+
react: ^15.0.0 || ^16.0.0 || 17
11711
11732
dependencies:
11712
11733
react: 17.0.2
11713
11734
dev: false
···
11716
11737
resolution: {integrity: sha512-o8RScHj6Lb8cwy3GMrVH6NJvL+y0zpJvKtc0+wmH7Bt23rszJmnqEQxRbyrqUzk9DTJIHoP42bfO5rswC9SWBQ==}
11717
11738
peerDependencies:
11718
11739
prop-types: ^15.6.0
11719
-
react: ^17.0.2 || 17
11740
+
react: ^15.6.2 || ^16.0 || ^17 || 17
11720
11741
dependencies:
11721
11742
prop-types: 15.7.2
11722
11743
react: 17.0.2
···
11729
11750
/react-helmet@5.2.1(react@17.0.2):
11730
11751
resolution: {integrity: sha512-CnwD822LU8NDBnjCpZ4ySh8L6HYyngViTZLfBBb3NjtrpN8m49clH8hidHouq20I51Y6TpCTISCBbqiY5GamwA==}
11731
11752
peerDependencies:
11732
-
react: ^17.0.2 || 17
11753
+
react: '>=15.0.0 || 17'
11733
11754
dependencies:
11734
11755
object-assign: 4.1.1
11735
11756
prop-types: 15.8.1
···
11741
11762
resolution: {integrity: sha512-JrLlvUPqh6wIkrK2hZDfOyq/Uh/WeVEr8nc7hkn2/3Ul0sx1Kr5y4kOGNacNRoj7RhwLNcQ3Udf1KJXrqc0ZtA==}
11742
11763
engines: {node: '>= 6'}
11743
11764
peerDependencies:
11744
-
'@types/react': ^17.0.39
11745
-
react: ^17.0.2 || 17
11746
-
react-dom: ^17.0.2 || 17
11765
+
'@types/react': '^15.0.0 || ^16.0.0 || ^17.0.0 '
11766
+
react: ^15.0.0 || ^16.0.0 || ^17.0.0 || 17
11767
+
react-dom: ^15.0.0 || ^16.0.0 || ^17.0.0 || 17
11747
11768
peerDependenciesMeta:
11748
11769
'@types/react':
11749
11770
optional: true
···
11762
11783
/react-inlinesvg@1.2.0(react@17.0.2):
11763
11784
resolution: {integrity: sha512-IsznU+UzpUwDGzBWbf0bfSRA5Jbqz87xeoqLM/nSIDPkoHksInF1wCGybTSn4sIui+30TqboRQP1wAelNTkdog==}
11764
11785
peerDependencies:
11765
-
react: ^17.0.2 || 17
11786
+
react: ^16.3.0 || 17
11766
11787
dependencies:
11767
11788
exenv: 1.2.2
11768
11789
react: 17.0.2
···
11778
11799
/react-router-dom@5.2.0(react@17.0.2):
11779
11800
resolution: {integrity: sha512-gxAmfylo2QUjcwxI63RhQ5G85Qqt4voZpUXSEqCwykV0baaOTQDR1f0PmY8AELqIyVc0NEZUj0Gov5lNGcXgsA==}
11780
11801
peerDependencies:
11781
-
react: ^17.0.2 || 17
11802
+
react: '>=15 || 17'
11782
11803
dependencies:
11783
11804
'@babel/runtime': 7.22.5
11784
11805
history: 4.10.1
···
11793
11814
/react-router-ga@1.2.3(react-router-dom@5.2.0)(react@17.0.2):
11794
11815
resolution: {integrity: sha512-0rNBGGI6Q1hkznbLB+bAmDTS+8w3duaJYYIbCrCwof/p7RbZuv+Lsv9enumRZXxb4oTZrY95vOvFxnsRQ4cFCg==}
11795
11816
peerDependencies:
11796
-
react: ^17.0.2 || 17
11817
+
react: ^16.8.6 || 17
11797
11818
react-router-dom: ^5.0.0
11798
11819
dependencies:
11799
11820
react: 17.0.2
···
11803
11824
/react-router@5.2.0(react@17.0.2):
11804
11825
resolution: {integrity: sha512-smz1DUuFHRKdcJC0jobGo8cVbhO3x50tCL4icacOlcwDOEQPq4TMqwx3sY1TP+DvtTgz4nm3thuo7A+BK2U0Dw==}
11805
11826
peerDependencies:
11806
-
react: ^17.0.2 || 17
11827
+
react: '>=15 || 17'
11807
11828
dependencies:
11808
11829
'@babel/runtime': 7.22.5
11809
11830
history: 4.10.1
···
11821
11842
/react-scroll@1.8.2(react-dom@17.0.2)(react@17.0.2):
11822
11843
resolution: {integrity: sha512-f2ZEG5fsPbPTySI9ekcFpETCcNlqbmwbQj9hhzYK8tkgv+PA8APatSt66o/q0KSkDZxyT98ONTtXp9x0lyowEw==}
11823
11844
peerDependencies:
11824
-
react: ^17.0.2 || 17
11825
-
react-dom: ^17.0.2 || 17
11845
+
react: ^15.5.4 || ^16.0.0 || ^17.0.0 || 17
11846
+
react-dom: ^15.5.4 || ^16.0.0 || ^17.0.0 || 17
11826
11847
dependencies:
11827
11848
lodash.throttle: 4.1.1
11828
11849
prop-types: 15.8.1
···
11833
11854
/react-shallow-renderer@16.14.1(react@17.0.2):
11834
11855
resolution: {integrity: sha512-rkIMcQi01/+kxiTE9D3fdS959U1g7gs+/rborw++42m1O9FAQiNI/UNRZExVUoAOprn4umcXf+pFRou8i4zuBg==}
11835
11856
peerDependencies:
11836
-
react: ^17.0.2 || 17
11857
+
react: ^16.0.0 || ^17.0.0 || 17
11837
11858
dependencies:
11838
11859
object-assign: 4.1.1
11839
11860
react: 17.0.2
···
11843
11864
/react-side-effect@1.2.0(react@17.0.2):
11844
11865
resolution: {integrity: sha512-v1ht1aHg5k/thv56DRcjw+WtojuuDHFUgGfc+bFHOWsF4ZK6C2V57DO0Or0GPsg6+LSTE0M6Ry/gfzhzSwbc5w==}
11845
11866
peerDependencies:
11846
-
react: ^17.0.2 || 17
11867
+
react: ^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0 || 17
11847
11868
dependencies:
11848
11869
react: 17.0.2
11849
11870
shallowequal: 1.1.0
···
11851
11872
/react-ssr-prepass@1.4.0(react@17.0.2):
11852
11873
resolution: {integrity: sha512-0SzdmiQUtHvhxCabHg9BI/pkJfijGkQ0jQL6fC4YFy7idaDOuaiQLsajIkkNxffFXtJFHIWFITlve2WB88e0Jw==}
11853
11874
peerDependencies:
11854
-
react: ^17.0.2 || 17
11875
+
react: ^16.8.0 || ^17.0.0 || 17
11855
11876
dependencies:
11856
11877
react: 17.0.2
11857
11878
dev: true
···
11894
11915
/react-static-plugin-styled-components@7.2.2(react@17.0.2)(styled-components@5.2.3):
11895
11916
resolution: {integrity: sha512-yjZ2V5b4HLRs6ldbLmreXpXBiNU5y4IByPID/rYWe3J8NFenPMI7kbhiFlBDkUDEhJvGIpSFw3I8OCvAcm4yQg==}
11896
11917
peerDependencies:
11897
-
react: ^17.0.2 || 17
11898
-
styled-components: ^5.2.3 || 5
11918
+
react: ^16.9.0 || 17
11919
+
styled-components: ^4.3.2 || 5
11899
11920
dependencies:
11900
11921
react: 17.0.2
11901
11922
styled-components: 5.2.3(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
···
11992
12013
/react-test-renderer@17.0.2(react@17.0.2):
11993
12014
resolution: {integrity: sha512-yaQ9cB89c17PUb0x6UfWRs7kQCorVdHlutU1boVPEsB8IDZH6n9tHxMacc3y0JoXOJUsZb/t/Mb8FUWMKaM7iQ==}
11994
12015
peerDependencies:
11995
-
react: ^17.0.2 || 17
12016
+
react: 17.0.2 || 17
11996
12017
dependencies:
11997
12018
object-assign: 4.1.1
11998
12019
react: 17.0.2
···
12004
12025
/react-universal-component@4.5.0(react@17.0.2):
12005
12026
resolution: {integrity: sha512-dBUC6afvSAQhDcE4oh1eTmfU29W0O2eZhcGXnfGUTulXkU8ejuWqlJWXXrSMx5iV1H6LNgj2NJMj3BtBMfBNhA==}
12006
12027
peerDependencies:
12007
-
react: ^17.0.2 || 17
12028
+
react: ^16.3.0 || ^17.0.0 || 17
12008
12029
dependencies:
12009
12030
hoist-non-react-statics: 3.3.2
12010
12031
prop-types: 15.8.1
···
12663
12684
resolution: {integrity: sha512-2P4PtieJeEwVgTU9QEcwIRDQ/mXJLX8/+I3ur+Pg16nS8oNbrGxEso9NyYWy8NAmXiNl4dlAp5MwoNeCWzON4w==}
12664
12685
dependencies:
12665
12686
node-forge: 0.10.0
12687
+
12688
+
/semiver@1.1.0:
12689
+
resolution: {integrity: sha512-QNI2ChmuioGC1/xjyYwyZYADILWyW6AmS1UH6gDj/SFUUUS4MBAWs/7mxnkRPc/F4iHezDP+O8t0dO8WHiEOdg==}
12690
+
engines: {node: '>=6'}
12691
+
dev: true
12666
12692
12667
12693
/semver-compare@1.0.0:
12668
12694
resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==}
···
13500
13526
resolution: {integrity: sha512-BlR+KrLW3NL1yhvEB+9Nu9Dt51CuOnHoxd+Hj+rYPdtyR8X11uIW9rvhpy3Dk4dXXBsiW1u5U78f00Lf/afGoA==}
13501
13527
engines: {node: '>=10'}
13502
13528
peerDependencies:
13503
-
react: ^17.0.2 || 17
13504
-
react-dom: ^17.0.2 || 17
13505
-
react-is: ^17.0.2 || 17
13529
+
react: '>= 16.8.0 || 17'
13530
+
react-dom: '>= 16.8.0 || 17'
13531
+
react-is: '>= 16.8.0 || 17'
13506
13532
dependencies:
13507
13533
'@babel/helper-module-imports': 7.21.4
13508
13534
'@babel/traverse': 7.21.5(supports-color@5.5.0)
···
13524
13550
peerDependencies:
13525
13551
'@babel/core': '*'
13526
13552
babel-plugin-macros: '*'
13527
-
react: ^17.0.2 || 17
13553
+
react: '>= 16.8.0 || 17.x.x || ^18.0.0-0 || 17'
13528
13554
peerDependenciesMeta:
13529
13555
'@babel/core':
13530
13556
optional: true
···
14427
14453
/use-sync-external-store@1.2.0(react@17.0.2):
14428
14454
resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==}
14429
14455
peerDependencies:
14430
-
react: ^17.0.2 || 17
14456
+
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || 17
14431
14457
dependencies:
14432
14458
react: 17.0.2
14433
14459
dev: true
···
14565
14591
/vite-tsconfig-paths@4.2.0(typescript@5.1.6)(vite@3.2.5):
14566
14592
resolution: {integrity: sha512-jGpus0eUy5qbbMVGiTxCL1iB9ZGN6Bd37VGLJU39kTDD6ZfULTTb1bcc5IeTWqWJKiWV5YihCaibeASPiGi8kw==}
14567
14593
peerDependencies:
14568
-
vite: ^3.2.4
14594
+
vite: '*'
14569
14595
peerDependenciesMeta:
14570
14596
vite:
14571
14597
optional: true
···
14845
14871
/webpack-flush-chunks@2.0.3(react@17.0.2):
14846
14872
resolution: {integrity: sha512-CXGOyXG5YjjxyI+Qyt3VlI//JX92UmGRNP65zN3o9CIntEzfzc1J30YTKRRvF1JsE/iEzbnp5u99yCkL9obotQ==}
14847
14873
peerDependencies:
14848
-
react: ^17.0.2 || 17
14874
+
react: '*'
14849
14875
dependencies:
14850
14876
react: 17.0.2
14851
14877
+43
scripts/changesets/jsr.mjs
+43
scripts/changesets/jsr.mjs
···
1
+
#!/usr/bin/env node
2
+
3
+
import fs from 'node:fs';
4
+
import path from 'node:path';
5
+
6
+
import { getPackageManifest, listPackages } from '../actions/lib/packages.mjs';
7
+
8
+
const getExports = exports => {
9
+
const exportNames = Object.keys(exports);
10
+
const eventualExports = {};
11
+
for (const exportName of exportNames) {
12
+
if (exportName.includes('package.json')) continue;
13
+
const exp = exports[exportName];
14
+
eventualExports[exportName] = exp.source;
15
+
}
16
+
return eventualExports;
17
+
};
18
+
19
+
export const updateJsr = async () => {
20
+
(await listPackages()).forEach(dir => {
21
+
const manifest = getPackageManifest(dir);
22
+
const jsrManifest = {
23
+
name: manifest.name,
24
+
version: manifest.version,
25
+
exports: manifest.exports
26
+
? getExports(manifest.exports)
27
+
: manifest.source,
28
+
exclude: [
29
+
'node_modules',
30
+
'cypress',
31
+
'**/*.test.*',
32
+
'**/*.spec.*',
33
+
'**/*.test.*.snap',
34
+
'**/*.spec.*.snap',
35
+
],
36
+
};
37
+
38
+
fs.writeFileSync(
39
+
path.resolve(dir, 'jsr.json'),
40
+
JSON.stringify(jsrManifest, undefined, 2)
41
+
);
42
+
});
43
+
};
+4
-1
scripts/changesets/version.mjs
+4
-1
scripts/changesets/version.mjs
···
6
6
import {
7
7
getPackageManifest,
8
8
updatePackageManifest,
9
-
listPackages
9
+
listPackages,
10
10
} from '../actions/lib/packages.mjs';
11
+
import { updateJsr } from './jsr.mjs';
11
12
12
13
const versionRe = /^\d+\.\d+\.\d+/i;
13
14
const execaOpts = { stdio: 'inherit' };
···
60
61
61
62
await updatePackageManifest(example, manifest);
62
63
}
64
+
65
+
await updateJsr();