Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

chore(workspace): automatically publish urql-core to JSR (#3574)

Changed files
+403 -57
.github
workflows
exchanges
auth
context
execute
graphcache
persisted
populate
refocus
request-policy
retry
packages
core
introspection
next-urql
preact-urql
react-urql
storage-rn
svelte-urql
vue-urql
scripts
changesets
+3
.github/workflows/ci.yml
···
- name: Unit Tests
run: pnpm run test
+
- name: Check for slow types
+
run: pnpm jsr:dryrun
+
react-e2e:
name: React E2E
runs-on: ubuntu-latest
+1
.github/workflows/release.yml
···
push:
branches:
- main
+
jobs:
release:
name: Release
+15
exchanges/auth/jsr.json
···
+
{
+
"name": "@urql/exchange-auth",
+
"version": "2.1.6",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
exchanges/context/jsr.json
···
+
{
+
"name": "@urql/exchange-context",
+
"version": "0.2.1",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
exchanges/execute/jsr.json
···
+
{
+
"name": "@urql/exchange-execute",
+
"version": "2.2.2",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+17
exchanges/graphcache/jsr.json
···
+
{
+
"name": "@urql/exchange-graphcache",
+
"version": "7.0.2",
+
"exports": {
+
".": "./src/index.ts",
+
"./extras": "./src/extras/index.ts",
+
"./default-storage": "./src/default-storage/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
exchanges/persisted/jsr.json
···
+
{
+
"name": "@urql/exchange-persisted",
+
"version": "4.2.0",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
exchanges/populate/jsr.json
···
+
{
+
"name": "@urql/exchange-populate",
+
"version": "1.1.2",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
exchanges/refocus/jsr.json
···
+
{
+
"name": "@urql/exchange-refocus",
+
"version": "1.0.2",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
exchanges/request-policy/jsr.json
···
+
{
+
"name": "@urql/exchange-request-policy",
+
"version": "1.1.0",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
exchanges/retry/jsr.json
···
+
{
+
"name": "@urql/exchange-retry",
+
"version": "1.2.1",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+4 -1
package.json
···
"postinstall": "node ./scripts/prepare/postinstall.js",
"pack": "node ./scripts/actions/pack-all.mjs",
"changeset:version": "node ./scripts/changesets/version.mjs",
-
"changeset:publish": "changeset publish"
+
"changeset:publish": "changeset publish && pnpm jsr",
+
"jsr": "pnpm --filter @urql/core jsr",
+
"jsr:dryrun": "pnpm --filter @urql/core jsr --dry-run"
},
"eslintConfig": {
"root": true,
···
"husky-v4": "^4.3.8",
"invariant": "^2.2.4",
"jsdom": "^21.1.1",
+
"jsr": "^0.12.4",
"lint-staged": "^13.2.2",
"npm-packlist": "^7.0.4",
"npm-run-all": "^4.1.5",
+16
packages/core/jsr.json
···
+
{
+
"name": "@urql/core",
+
"version": "5.0.2",
+
"exports": {
+
".": "./src/index.ts",
+
"./internal": "./src/internal/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+2 -1
packages/core/package.json
···
"lint": "eslint --ext=js,jsx,ts,tsx .",
"build": "rollup -c ../../scripts/rollup/config.mjs",
"prepare": "node ../../scripts/prepare/index.js",
-
"prepublishOnly": "run-s clean build"
+
"prepublishOnly": "run-s clean build",
+
"jsr": "jsr publish"
},
"dependencies": {
"@0no-co/graphql.web": "^1.0.5",
+1 -1
packages/core/src/utils/error.ts
···
this.response = input.response;
}
-
toString() {
+
toString(): string {
return this.message;
}
}
+4 -1
packages/core/src/utils/formatDocument.ts
···
return node as FormattedNode<T>;
};
-
const formattedDocs = new Map<number, KeyedDocumentNode>();
+
const formattedDocs: Map<number, KeyedDocumentNode> = new Map<
+
number,
+
KeyedDocumentNode
+
>();
/** Formats a GraphQL document to add `__typename` fields and process client-side directives.
*
+9 -3
packages/core/src/utils/request.ts
···
const GRAPHQL_STRING_RE = /("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g;
const REPLACE_CHAR_RE = /(?:#[^\n\r]+)?(?:[\r\n]+|$)/g;
-
const replaceOutsideStrings = (str: string, idx: number) =>
+
const replaceOutsideStrings = (str: string, idx: number): string =>
idx % 2 === 0 ? str.replace(REPLACE_CHAR_RE, '\n') : str;
/** Sanitizes a GraphQL document string by replacing comments and redundant newlines in it. */
const sanitizeDocument = (node: string): string =>
node.split(GRAPHQL_STRING_RE).map(replaceOutsideStrings).join('').trim();
-
const prints = new Map<DocumentNode | DefinitionNode, string>();
-
const docs = new Map<HashValue, KeyedDocumentNode>();
+
const prints: Map<DocumentNode | DefinitionNode, string> = new Map<
+
DocumentNode | DefinitionNode,
+
string
+
>();
+
const docs: Map<HashValue, KeyedDocumentNode> = new Map<
+
HashValue,
+
KeyedDocumentNode
+
>();
/** A cached printing function for GraphQL documents.
*
+1 -1
packages/core/src/utils/result.ts
···
};
};
-
const deepMerge = (target: any, source: any) => {
+
const deepMerge = (target: any, source: any): any => {
if (typeof target === 'object' && target != null) {
if (
!target.constructor ||
+2 -2
packages/core/src/utils/variables.ts
···
export type FileMap = Map<string, File | Blob>;
-
const seen = new Set();
-
const cache = new WeakMap();
+
const seen: Set<any> = new Set();
+
const cache: WeakMap<any, any> = new WeakMap();
const stringify = (x: any): string => {
if (x === null || seen.has(x)) {
+15
packages/introspection/jsr.json
···
+
{
+
"name": "@urql/introspection",
+
"version": "1.0.3",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+16
packages/next-urql/jsr.json
···
+
{
+
"name": "@urql/next",
+
"version": "1.1.1",
+
"exports": {
+
".": "./src/index.ts",
+
"./rsc": "./src/rsc.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
packages/preact-urql/jsr.json
···
+
{
+
"name": "@urql/preact",
+
"version": "4.0.5",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+13
packages/react-urql/jsr.json
···
+
{
+
"name": "urql",
+
"version": "4.0.7",
+
"exports": "src/index.ts",
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
packages/storage-rn/jsr.json
···
+
{
+
"name": "@urql/storage-rn",
+
"version": "1.1.0",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
packages/svelte-urql/jsr.json
···
+
{
+
"name": "@urql/svelte",
+
"version": "4.1.1",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+15
packages/vue-urql/jsr.json
···
+
{
+
"name": "@urql/vue",
+
"version": "1.1.3",
+
"exports": {
+
".": "./src/index.ts"
+
},
+
"exclude": [
+
"node_modules",
+
"cypress",
+
"**/*.test.*",
+
"**/*.spec.*",
+
"**/*.test.*.snap",
+
"**/*.spec.*.snap"
+
]
+
}
+72 -46
pnpm-lock.yaml
···
jsdom:
specifier: ^21.1.1
version: 21.1.1
+
jsr:
+
specifier: ^0.12.4
+
version: 0.12.4
lint-staged:
specifier: ^13.2.2
version: 13.2.2
···
/@0no-co/graphql.web@1.0.5(graphql@16.6.0):
resolution: {integrity: sha512-/ODdeNNFksS9hUvpjWFldMEpq0OqCFEIV3NVM0eU8HLUYU0Szf+2iKvr63kkbGchQwk2/1IxPF1PfoCabVkgLw==}
peerDependencies:
-
graphql: ^16.6.0
+
graphql: ^14.0.0 || ^15.0.0 || ^16.0.0
peerDependenciesMeta:
graphql:
optional: true
···
/@cypress/react@7.0.2(@types/react@17.0.52)(cypress@12.8.1)(react-dom@17.0.2)(react@17.0.2):
resolution: {integrity: sha512-TTV7XNMDOO9mZUFWiGbd44Od/jqMVX/QbHYKQmK1XT3nIVFs0EvKJuHJmwN7wxLOR/+6twtyX6vTD8z8XBTliQ==}
peerDependencies:
-
'@types/react': ^17.0.39
+
'@types/react': ^16.9.16 || ^17.0.0
cypress: '*'
-
react: ^17.0.2 || 17
-
react-dom: ^17.0.2 || 17
+
react: ^=16.x || ^=17.x || 17
+
react-dom: ^=16.x || ^=17.x || 17
peerDependenciesMeta:
'@types/react':
optional: true
···
/@mdx-js/react@1.6.22(react@17.0.2):
resolution: {integrity: sha512-TDoPum4SHdfPiGSAaRBw7ECyI8VaHpK8GJugbJIJuqyh6kzw9ZLJZW3HGL3NNrJGxcAixUvqROm+YuQOo5eXtg==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: ^16.13.1 || ^17.0.0 || 17
dependencies:
react: 17.0.2
dev: false
···
/@reach/router@1.3.4(react-dom@17.0.2)(react@17.0.2):
resolution: {integrity: sha512-+mtn9wjlB9NN2CNnnC/BRYtwdKBfSyyasPYraNAyvaV1occr/5NnB4CVzjEZipNHwYebQwcndGUmpFzxAUoqSA==}
peerDependencies:
-
react: ^17.0.2 || 17
-
react-dom: ^17.0.2 || 17
+
react: 15.x || 16.x || 16.4.0-alpha.0911da3 || 17
+
react-dom: 15.x || 16.x || 16.4.0-alpha.0911da3 || 17
dependencies:
create-react-context: 0.3.0(prop-types@15.8.1)(react@17.0.2)
invariant: 2.2.4
···
/@testing-library/react-hooks@5.1.2(react-dom@17.0.2)(react-test-renderer@17.0.2)(react@17.0.2):
resolution: {integrity: sha512-jwhtDYZ5gQUIX8cmVCVdtwNvuF5EiCOWjokRlTV+o/V0GdtRZDykUllL1OXq5PS4+J33wGLNQeeWzEHcWrH7tg==}
peerDependencies:
-
react: ^17.0.2 || 17
-
react-dom: ^17.0.2 || 17
+
react: '>=16.9.0 || 17'
+
react-dom: '>=16.9.0 || 17'
react-test-renderer: '>=16.9.0'
peerDependenciesMeta:
react-dom:
···
resolution: {integrity: sha512-TXMCg0jT8xmuU8BkKMtp8l7Z50Ykew5WNX8UoIKTaLFwKkP2+1YDhOLA2Ga3wY4x29jyntk7EWfum0kjlYiSjQ==}
engines: {node: '>=10'}
peerDependencies:
-
react: ^17.0.2 || 17
-
react-dom: ^17.0.2 || 17
+
react: '*'
+
react-dom: '*'
dependencies:
'@babel/runtime': 7.22.5
'@testing-library/dom': 7.30.4
···
/babel-plugin-styled-components@1.12.0(styled-components@5.2.3):
resolution: {integrity: sha512-FEiD7l5ZABdJPpLssKXjBUJMYqzbcNzBowfXDCdJhOpbhWiewapUaY+LZGT8R4Jg2TwOjGjG4RKeyrO5p9sBkA==}
peerDependencies:
-
styled-components: ^5.2.3 || 5
+
styled-components: '>= 2 || 5'
dependencies:
'@babel/helper-annotate-as-pure': 7.18.6
'@babel/helper-module-imports': 7.21.4
···
resolution: {integrity: sha512-dNldIoSuNSvlTJ7slIKC/ZFGKexBMBrrcc+TTe1NdmROnaASuLPvqpwj9v4XS4uXZ8+YPu0sNmShX2rXI5LNsw==}
peerDependencies:
prop-types: ^15.0.0
-
react: ^17.0.2 || 17
+
react: ^0.14.0 || ^15.0.0 || ^16.0.0 || 17
dependencies:
gud: 1.0.0
prop-types: 15.8.1
···
resolution: {integrity: sha512-jvHSQMXujUtncyT3ObkoQgwOzkxdnnAs7XYgJDGSqhGqPF+LZ0y4rS5b6XzaN2BR3hG2e7isVtCNOmb7gxNuYw==}
engines: {node: '>= 0.12.0', npm: '>= 2.0.0'}
peerDependencies:
-
styled-components: ^5.2.3 || 5
+
styled-components: '>= 4.0.0 || 5'
dependencies:
styled-components: 5.2.3(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
dev: false
···
verror: 1.10.0
dev: true
+
/jsr@0.12.4:
+
resolution: {integrity: sha512-ZWDvqQE8014fWz9QBrkiuvRQ8mH97PRD13VIDzoMXDem3ff2S+wfXw+YAvrZE0aKzxh9FuHJX0HQRQ2MUHshig==}
+
hasBin: true
+
dependencies:
+
kolorist: 1.8.0
+
node-stream-zip: 1.15.0
+
semiver: 1.1.0
+
dev: true
+
/jsx-ast-utils@3.3.5:
resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}
engines: {node: '>=4.0'}
···
/kleur@4.1.5:
resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
engines: {node: '>=6'}
+
dev: true
+
+
/kolorist@1.8.0:
+
resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==}
dev: true
/last-call-webpack-plugin@3.0.0:
···
deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
peerDependencies:
prop-types: ^15.0.0
-
react: ^17.0.2 || 17
+
react: ^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || 17
dependencies:
'@babel/runtime': 7.22.5
prop-types: 15.8.1
···
peerDependencies:
fibers: '>= 3.1.0'
node-sass: ^6.0.0 || ^7.0.0
-
react: ^17.0.2 || 17
-
react-dom: ^17.0.2 || 17
+
react: ^18.0.0-0 || 17
+
react-dom: ^18.0.0-0 || 17
sass: ^1.3.0
peerDependenciesMeta:
fibers:
···
/node-releases@2.0.10:
resolution: {integrity: sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==}
+
+
/node-stream-zip@1.15.0:
+
resolution: {integrity: sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==}
+
engines: {node: '>=0.12.0'}
+
dev: true
/nopt@6.0.0:
resolution: {integrity: sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==}
···
/prism-react-renderer@1.2.0(react@17.0.2):
resolution: {integrity: sha512-GHqzxLYImx1iKN1jJURcuRoA/0ygCcNhfGw1IT8nPIMzarmKQ3Nc+JcG0gi8JXQzuh0C5ShE4npMIoqNin40hg==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: '>=0.14.9 || 17'
dependencies:
react: 17.0.2
dev: false
···
/react-dom@17.0.2(react@17.0.2):
resolution: {integrity: sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: 17.0.2 || 17
dependencies:
loose-envify: 1.4.0
object-assign: 4.1.1
···
resolution: {integrity: sha512-W3xCd9zXnanqrTUeViceufD3mIW8Ut29BUD+S2f0eO2XCOU8b6UrJfY46RDGe5lxCJzfe4j0yvIfh0RbTZhKJw==}
engines: {node: '>=10', npm: '>=6'}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: '>=16.13.1 || 17'
dependencies:
'@babel/runtime': 7.22.5
react: 17.0.2
···
/react-from-dom@0.3.1(react@17.0.2):
resolution: {integrity: sha512-PeNBa8iuzoD7qHA9O7YpGnXFvC+XFFwStmFh2/r2zJAvEIaRg6EwOj+EPcDIFwyYBhqPIItxIx/dGdeWiFivjQ==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: ^15.0.0 || ^16.0.0 || 17
dependencies:
react: 17.0.2
dev: false
···
resolution: {integrity: sha512-o8RScHj6Lb8cwy3GMrVH6NJvL+y0zpJvKtc0+wmH7Bt23rszJmnqEQxRbyrqUzk9DTJIHoP42bfO5rswC9SWBQ==}
peerDependencies:
prop-types: ^15.6.0
-
react: ^17.0.2 || 17
+
react: ^15.6.2 || ^16.0 || ^17 || 17
dependencies:
prop-types: 15.7.2
react: 17.0.2
···
/react-helmet@5.2.1(react@17.0.2):
resolution: {integrity: sha512-CnwD822LU8NDBnjCpZ4ySh8L6HYyngViTZLfBBb3NjtrpN8m49clH8hidHouq20I51Y6TpCTISCBbqiY5GamwA==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: '>=15.0.0 || 17'
dependencies:
object-assign: 4.1.1
prop-types: 15.8.1
···
resolution: {integrity: sha512-JrLlvUPqh6wIkrK2hZDfOyq/Uh/WeVEr8nc7hkn2/3Ul0sx1Kr5y4kOGNacNRoj7RhwLNcQ3Udf1KJXrqc0ZtA==}
engines: {node: '>= 6'}
peerDependencies:
-
'@types/react': ^17.0.39
-
react: ^17.0.2 || 17
-
react-dom: ^17.0.2 || 17
+
'@types/react': '^15.0.0 || ^16.0.0 || ^17.0.0 '
+
react: ^15.0.0 || ^16.0.0 || ^17.0.0 || 17
+
react-dom: ^15.0.0 || ^16.0.0 || ^17.0.0 || 17
peerDependenciesMeta:
'@types/react':
optional: true
···
/react-inlinesvg@1.2.0(react@17.0.2):
resolution: {integrity: sha512-IsznU+UzpUwDGzBWbf0bfSRA5Jbqz87xeoqLM/nSIDPkoHksInF1wCGybTSn4sIui+30TqboRQP1wAelNTkdog==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: ^16.3.0 || 17
dependencies:
exenv: 1.2.2
react: 17.0.2
···
/react-router-dom@5.2.0(react@17.0.2):
resolution: {integrity: sha512-gxAmfylo2QUjcwxI63RhQ5G85Qqt4voZpUXSEqCwykV0baaOTQDR1f0PmY8AELqIyVc0NEZUj0Gov5lNGcXgsA==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: '>=15 || 17'
dependencies:
'@babel/runtime': 7.22.5
history: 4.10.1
···
/react-router-ga@1.2.3(react-router-dom@5.2.0)(react@17.0.2):
resolution: {integrity: sha512-0rNBGGI6Q1hkznbLB+bAmDTS+8w3duaJYYIbCrCwof/p7RbZuv+Lsv9enumRZXxb4oTZrY95vOvFxnsRQ4cFCg==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: ^16.8.6 || 17
react-router-dom: ^5.0.0
dependencies:
react: 17.0.2
···
/react-router@5.2.0(react@17.0.2):
resolution: {integrity: sha512-smz1DUuFHRKdcJC0jobGo8cVbhO3x50tCL4icacOlcwDOEQPq4TMqwx3sY1TP+DvtTgz4nm3thuo7A+BK2U0Dw==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: '>=15 || 17'
dependencies:
'@babel/runtime': 7.22.5
history: 4.10.1
···
/react-scroll@1.8.2(react-dom@17.0.2)(react@17.0.2):
resolution: {integrity: sha512-f2ZEG5fsPbPTySI9ekcFpETCcNlqbmwbQj9hhzYK8tkgv+PA8APatSt66o/q0KSkDZxyT98ONTtXp9x0lyowEw==}
peerDependencies:
-
react: ^17.0.2 || 17
-
react-dom: ^17.0.2 || 17
+
react: ^15.5.4 || ^16.0.0 || ^17.0.0 || 17
+
react-dom: ^15.5.4 || ^16.0.0 || ^17.0.0 || 17
dependencies:
lodash.throttle: 4.1.1
prop-types: 15.8.1
···
/react-shallow-renderer@16.14.1(react@17.0.2):
resolution: {integrity: sha512-rkIMcQi01/+kxiTE9D3fdS959U1g7gs+/rborw++42m1O9FAQiNI/UNRZExVUoAOprn4umcXf+pFRou8i4zuBg==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: ^16.0.0 || ^17.0.0 || 17
dependencies:
object-assign: 4.1.1
react: 17.0.2
···
/react-side-effect@1.2.0(react@17.0.2):
resolution: {integrity: sha512-v1ht1aHg5k/thv56DRcjw+WtojuuDHFUgGfc+bFHOWsF4ZK6C2V57DO0Or0GPsg6+LSTE0M6Ry/gfzhzSwbc5w==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: ^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0 || 17
dependencies:
react: 17.0.2
shallowequal: 1.1.0
···
/react-ssr-prepass@1.4.0(react@17.0.2):
resolution: {integrity: sha512-0SzdmiQUtHvhxCabHg9BI/pkJfijGkQ0jQL6fC4YFy7idaDOuaiQLsajIkkNxffFXtJFHIWFITlve2WB88e0Jw==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: ^16.8.0 || ^17.0.0 || 17
dependencies:
react: 17.0.2
dev: true
···
/react-static-plugin-styled-components@7.2.2(react@17.0.2)(styled-components@5.2.3):
resolution: {integrity: sha512-yjZ2V5b4HLRs6ldbLmreXpXBiNU5y4IByPID/rYWe3J8NFenPMI7kbhiFlBDkUDEhJvGIpSFw3I8OCvAcm4yQg==}
peerDependencies:
-
react: ^17.0.2 || 17
-
styled-components: ^5.2.3 || 5
+
react: ^16.9.0 || 17
+
styled-components: ^4.3.2 || 5
dependencies:
react: 17.0.2
styled-components: 5.2.3(react-dom@17.0.2)(react-is@17.0.2)(react@17.0.2)
···
/react-test-renderer@17.0.2(react@17.0.2):
resolution: {integrity: sha512-yaQ9cB89c17PUb0x6UfWRs7kQCorVdHlutU1boVPEsB8IDZH6n9tHxMacc3y0JoXOJUsZb/t/Mb8FUWMKaM7iQ==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: 17.0.2 || 17
dependencies:
object-assign: 4.1.1
react: 17.0.2
···
/react-universal-component@4.5.0(react@17.0.2):
resolution: {integrity: sha512-dBUC6afvSAQhDcE4oh1eTmfU29W0O2eZhcGXnfGUTulXkU8ejuWqlJWXXrSMx5iV1H6LNgj2NJMj3BtBMfBNhA==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: ^16.3.0 || ^17.0.0 || 17
dependencies:
hoist-non-react-statics: 3.3.2
prop-types: 15.8.1
···
resolution: {integrity: sha512-2P4PtieJeEwVgTU9QEcwIRDQ/mXJLX8/+I3ur+Pg16nS8oNbrGxEso9NyYWy8NAmXiNl4dlAp5MwoNeCWzON4w==}
dependencies:
node-forge: 0.10.0
+
+
/semiver@1.1.0:
+
resolution: {integrity: sha512-QNI2ChmuioGC1/xjyYwyZYADILWyW6AmS1UH6gDj/SFUUUS4MBAWs/7mxnkRPc/F4iHezDP+O8t0dO8WHiEOdg==}
+
engines: {node: '>=6'}
+
dev: true
/semver-compare@1.0.0:
resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==}
···
resolution: {integrity: sha512-BlR+KrLW3NL1yhvEB+9Nu9Dt51CuOnHoxd+Hj+rYPdtyR8X11uIW9rvhpy3Dk4dXXBsiW1u5U78f00Lf/afGoA==}
engines: {node: '>=10'}
peerDependencies:
-
react: ^17.0.2 || 17
-
react-dom: ^17.0.2 || 17
-
react-is: ^17.0.2 || 17
+
react: '>= 16.8.0 || 17'
+
react-dom: '>= 16.8.0 || 17'
+
react-is: '>= 16.8.0 || 17'
dependencies:
'@babel/helper-module-imports': 7.21.4
'@babel/traverse': 7.21.5(supports-color@5.5.0)
···
peerDependencies:
'@babel/core': '*'
babel-plugin-macros: '*'
-
react: ^17.0.2 || 17
+
react: '>= 16.8.0 || 17.x.x || ^18.0.0-0 || 17'
peerDependenciesMeta:
'@babel/core':
optional: true
···
/use-sync-external-store@1.2.0(react@17.0.2):
resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || 17
dependencies:
react: 17.0.2
dev: true
···
/vite-tsconfig-paths@4.2.0(typescript@5.1.6)(vite@3.2.5):
resolution: {integrity: sha512-jGpus0eUy5qbbMVGiTxCL1iB9ZGN6Bd37VGLJU39kTDD6ZfULTTb1bcc5IeTWqWJKiWV5YihCaibeASPiGi8kw==}
peerDependencies:
-
vite: ^3.2.4
+
vite: '*'
peerDependenciesMeta:
vite:
optional: true
···
/webpack-flush-chunks@2.0.3(react@17.0.2):
resolution: {integrity: sha512-CXGOyXG5YjjxyI+Qyt3VlI//JX92UmGRNP65zN3o9CIntEzfzc1J30YTKRRvF1JsE/iEzbnp5u99yCkL9obotQ==}
peerDependencies:
-
react: ^17.0.2 || 17
+
react: '*'
dependencies:
react: 17.0.2
+43
scripts/changesets/jsr.mjs
···
+
#!/usr/bin/env node
+
+
import fs from 'node:fs';
+
import path from 'node:path';
+
+
import { getPackageManifest, listPackages } from '../actions/lib/packages.mjs';
+
+
const getExports = exports => {
+
const exportNames = Object.keys(exports);
+
const eventualExports = {};
+
for (const exportName of exportNames) {
+
if (exportName.includes('package.json')) continue;
+
const exp = exports[exportName];
+
eventualExports[exportName] = exp.source;
+
}
+
return eventualExports;
+
};
+
+
export const updateJsr = async () => {
+
(await listPackages()).forEach(dir => {
+
const manifest = getPackageManifest(dir);
+
const jsrManifest = {
+
name: manifest.name,
+
version: manifest.version,
+
exports: manifest.exports
+
? getExports(manifest.exports)
+
: manifest.source,
+
exclude: [
+
'node_modules',
+
'cypress',
+
'**/*.test.*',
+
'**/*.spec.*',
+
'**/*.test.*.snap',
+
'**/*.spec.*.snap',
+
],
+
};
+
+
fs.writeFileSync(
+
path.resolve(dir, 'jsr.json'),
+
JSON.stringify(jsrManifest, undefined, 2)
+
);
+
});
+
};
+4 -1
scripts/changesets/version.mjs
···
import {
getPackageManifest,
updatePackageManifest,
-
listPackages
+
listPackages,
} from '../actions/lib/packages.mjs';
+
import { updateJsr } from './jsr.mjs';
const versionRe = /^\d+\.\d+\.\d+/i;
const execaOpts = { stdio: 'inherit' };
···
await updatePackageManifest(example, manifest);
}
+
+
await updateJsr();