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

Configure Feed

Select the types of activity you want to include in your feed.

fix(storage-rn): Fix interop imports for CommonJS and update React imports (#3251)

authored by

Phil Pluckthun and committed by
GitHub
ba5ffe76 30b628ec

+180 -93
+7
.changeset/mean-tips-fetch.md
··· 1 + --- 2 + 'urql': patch 3 + 'next-urql': patch 4 + '@urql/storage-rn': patch 5 + --- 6 + 7 + Switch `react` imports to namespace imports, and update build process for CommonJS outputs to interoperate with `__esModule` marked modules again.
+2 -2
package.json
··· 66 66 "@changesets/get-github-info": "0.5.2", 67 67 "@npmcli/arborist": "^6.2.5", 68 68 "@rollup/plugin-babel": "^6.0.3", 69 - "@rollup/plugin-commonjs": "^24.1.0", 70 - "@rollup/plugin-node-resolve": "^15.0.2", 69 + "@rollup/plugin-commonjs": "^25.0.0", 70 + "@rollup/plugin-node-resolve": "^15.1.0", 71 71 "@rollup/plugin-replace": "^5.0.2", 72 72 "@rollup/plugin-terser": "^0.4.1", 73 73 "@rollup/pluginutils": "^5.0.2",
+8 -14
packages/next-urql/src/with-urql-client.ts
··· 1 - import { 2 - createElement, 3 - useCallback, 4 - useReducer, 5 - useMemo, 6 - ReactNode, 7 - ReactElement, 8 - } from 'react'; 1 + import type { ReactNode, ReactElement } from 'react'; 2 + import * as React from 'react'; 9 3 10 4 import { 11 5 Provider, ··· 85 79 urqlState, 86 80 ...rest 87 81 }: WithUrqlProps) => { 88 - const [version, forceUpdate] = useReducer(prev => prev + 1, 0); 82 + const [version, forceUpdate] = React.useReducer(prev => prev + 1, 0); 89 83 const urqlServerState = (pageProps && pageProps.urqlState) || urqlState; 90 84 91 - const client = useMemo(() => { 85 + const client = React.useMemo(() => { 92 86 if (urqlClient && !version) { 93 87 return urqlClient; 94 88 } ··· 116 110 return initUrqlClient(clientConfig, shouldEnableSuspense)!; 117 111 }, [urqlClient, urqlServerState, version]); 118 112 119 - const resetUrqlClient = useCallback(() => { 113 + const resetUrqlClient = React.useCallback(() => { 120 114 resetClient(); 121 115 ssr = ssrExchange({ initialState: undefined }); 122 116 forceUpdate(); 123 117 }, []); 124 118 125 - return createElement( 119 + return React.createElement( 126 120 Provider, 127 121 { value: client }, 128 - createElement(AppOrPage, { 122 + React.createElement(AppOrPage, { 129 123 ...rest, 130 124 pageProps, 131 125 urqlClient: client, ··· 189 183 190 184 // Run the prepass step on AppTree. This will run all urql queries on the server. 191 185 if (!options!.neverSuspend) { 192 - await ssrPrepass(createElement(AppTree, appTreeProps)); 186 + await ssrPrepass(React.createElement(AppTree, appTreeProps)); 193 187 } 194 188 195 189 return {
+5 -7
packages/react-urql/src/context.ts
··· 1 - import { createContext, useContext } from 'react'; 1 + import * as React from 'react'; 2 2 import { Client } from '@urql/core'; 3 3 4 4 const OBJ = {}; ··· 10 10 * You may use the reexported {@link Provider} to provide a `Client` as well. 11 11 */ 12 12 export const Context: import('react').Context<Client | object> = 13 - createContext(OBJ); 13 + React.createContext(OBJ); 14 14 15 15 /** Provider for `urql`'s {@link Client} to GraphQL hooks. 16 16 * ··· 39 39 * ); 40 40 * ``` 41 41 */ 42 - export const Provider: import('react').Provider<Client | object> = 43 - Context.Provider; 42 + export const Provider: React.Provider<Client | object> = Context.Provider; 44 43 45 44 /** React Consumer component, providing the {@link Client} provided on a parent component. 46 45 * @remarks 47 46 * This is an alias for {@link Context.Consumer}. 48 47 */ 49 - export const Consumer: import('react').Consumer<Client | object> = 50 - Context.Consumer; 48 + export const Consumer: React.Consumer<Client | object> = Context.Consumer; 51 49 52 50 Context.displayName = 'UrqlContext'; 53 51 ··· 65 63 * not wrapped in a {@link Provider}, an error is thrown. 66 64 */ 67 65 export const useClient = (): Client => { 68 - const client = useContext(Context); 66 + const client = React.useContext(Context); 69 67 70 68 if (client === OBJ && process.env.NODE_ENV !== 'production') { 71 69 const error =
+5 -5
packages/react-urql/src/hooks/useMutation.ts
··· 1 - import { useState, useCallback, useRef, useEffect } from 'react'; 1 + import * as React from 'react'; 2 2 import { pipe, onPush, filter, toPromise, take } from 'wonka'; 3 3 4 4 import { ··· 144 144 Data = any, 145 145 Variables extends AnyVariables = AnyVariables 146 146 >(query: DocumentInput<Data, Variables>): UseMutationResponse<Data, Variables> { 147 - const isMounted = useRef(true); 147 + const isMounted = React.useRef(true); 148 148 const client = useClient(); 149 149 150 150 const [state, setState] = 151 - useState<UseMutationState<Data, Variables>>(initialState); 151 + React.useState<UseMutationState<Data, Variables>>(initialState); 152 152 153 - const executeMutation = useCallback( 153 + const executeMutation = React.useCallback( 154 154 (variables: Variables, context?: Partial<OperationContext>) => { 155 155 deferDispatch(setState, { ...initialState, fetching: true }); 156 156 return pipe( ··· 179 179 [client, query, setState] 180 180 ); 181 181 182 - useEffect(() => { 182 + React.useEffect(() => { 183 183 isMounted.current = true; 184 184 return () => { 185 185 isMounted.current = false;
+6 -6
packages/react-urql/src/hooks/useQuery.ts
··· 1 1 /* eslint-disable react-hooks/exhaustive-deps */ 2 2 3 3 import { Source, pipe, subscribe, onEnd, onPush, takeWhile } from 'wonka'; 4 - import { useState, useEffect, useCallback, useMemo } from 'react'; 4 + import * as React from 'react'; 5 5 6 6 import { 7 7 GraphQLRequestParams, ··· 221 221 const suspense = isSuspense(client, args.context); 222 222 const request = useRequest(args.query, args.variables as Variables); 223 223 224 - const source = useMemo(() => { 224 + const source = React.useMemo(() => { 225 225 if (args.pause) return null; 226 226 227 227 const source = client.executeQuery(request, { ··· 247 247 args.context, 248 248 ]); 249 249 250 - const getSnapshot = useCallback( 250 + const getSnapshot = React.useCallback( 251 251 ( 252 252 source: Source<OperationResult<Data, Variables>> | null, 253 253 suspense: boolean ··· 294 294 args.pause, 295 295 ] as const; 296 296 297 - const [state, setState] = useState( 297 + const [state, setState] = React.useState( 298 298 () => 299 299 [ 300 300 source, ··· 315 315 ]); 316 316 } 317 317 318 - useEffect(() => { 318 + React.useEffect(() => { 319 319 const source = state[0]; 320 320 const request = state[2][1]; 321 321 ··· 351 351 } 352 352 }, [cache, state[0], state[2][1]]); 353 353 354 - const executeQuery = useCallback( 354 + const executeQuery = React.useCallback( 355 355 (opts?: Partial<OperationContext>) => { 356 356 const context = { 357 357 requestPolicy: args.requestPolicy,
+5 -3
packages/react-urql/src/hooks/useRequest.ts
··· 1 - import { useRef, useMemo } from 'react'; 1 + import * as React from 'react'; 2 2 import { 3 3 AnyVariables, 4 4 DocumentInput, ··· 16 16 query: DocumentInput<Data, Variables>, 17 17 variables: Variables 18 18 ): GraphQLRequest<Data, Variables> { 19 - const prev = useRef<undefined | GraphQLRequest<Data, Variables>>(undefined); 19 + const prev = React.useRef<undefined | GraphQLRequest<Data, Variables>>( 20 + undefined 21 + ); 20 22 21 - return useMemo(() => { 23 + return React.useMemo(() => { 22 24 const request = createRequest<Data, Variables>(query, variables); 23 25 // We manually ensure reference equality if the key hasn't changed 24 26 if (prev.current !== undefined && prev.current.key === request.key) {
+8 -8
packages/react-urql/src/hooks/useSubscription.ts
··· 1 1 /* eslint-disable react-hooks/exhaustive-deps */ 2 2 3 3 import { pipe, subscribe, onEnd } from 'wonka'; 4 - import { useEffect, useState, useCallback, useMemo, useRef } from 'react'; 4 + import * as React from 'react'; 5 5 6 6 import { 7 7 GraphQLRequestParams, ··· 233 233 const client = useClient(); 234 234 const request = useRequest(args.query, args.variables as Variables); 235 235 236 - const handlerRef = useRef<SubscriptionHandler<Data, Result> | undefined>( 237 - handler 238 - ); 236 + const handlerRef = React.useRef< 237 + SubscriptionHandler<Data, Result> | undefined 238 + >(handler); 239 239 handlerRef.current = handler; 240 240 241 - const source = useMemo( 241 + const source = React.useMemo( 242 242 () => 243 243 !args.pause ? client.executeSubscription(request, args.context) : null, 244 244 [client, request, args.pause, args.context] ··· 246 246 247 247 const deps = [client, request, args.context, args.pause] as const; 248 248 249 - const [state, setState] = useState( 249 + const [state, setState] = React.useState( 250 250 () => [source, { ...initialState, fetching: !!source }, deps] as const 251 251 ); 252 252 ··· 259 259 ]); 260 260 } 261 261 262 - useEffect(() => { 262 + React.useEffect(() => { 263 263 const updateResult = ( 264 264 result: Partial<UseSubscriptionState<Data, Variables>> 265 265 ) => { ··· 291 291 }, [state[0]]); 292 292 293 293 // This is the imperative execute function passed to the user 294 - const executeSubscription = useCallback( 294 + const executeSubscription = React.useCallback( 295 295 (opts?: Partial<OperationContext>) => { 296 296 const source = client.executeSubscription(request, { 297 297 ...args.context,
+2 -2
packages/storage-rn/package.json
··· 55 55 "devDependencies": { 56 56 "@urql/core": "workspace:*", 57 57 "@urql/exchange-graphcache": "workspace:*", 58 - "@react-native-async-storage/async-storage": "^1.15.5", 59 - "@react-native-community/netinfo": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" 58 + "@react-native-async-storage/async-storage": "^1.18.2", 59 + "@react-native-community/netinfo": "^9.3.10" 60 60 }, 61 61 "publishConfig": { 62 62 "access": "public",
+123 -43
pnpm-lock.yaml
··· 59 59 specifier: ^6.0.3 60 60 version: 6.0.3(@babel/core@7.21.5)(rollup@3.21.1) 61 61 '@rollup/plugin-commonjs': 62 - specifier: ^24.1.0 63 - version: 24.1.0(rollup@3.21.1) 62 + specifier: ^25.0.0 63 + version: 25.0.0(rollup@3.21.1) 64 64 '@rollup/plugin-node-resolve': 65 - specifier: ^15.0.2 66 - version: 15.0.2(rollup@3.21.1) 65 + specifier: ^15.1.0 66 + version: 15.1.0(rollup@3.21.1) 67 67 '@rollup/plugin-replace': 68 68 specifier: ^5.0.2 69 69 version: 5.0.2(rollup@3.21.1) ··· 564 564 packages/storage-rn: 565 565 devDependencies: 566 566 '@react-native-async-storage/async-storage': 567 - specifier: ^1.15.5 568 - version: 1.15.5 567 + specifier: ^1.18.2 568 + version: 1.18.2 569 569 '@react-native-community/netinfo': 570 - specifier: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 571 - version: 6.0.0 570 + specifier: ^9.3.10 571 + version: 9.3.10 572 572 '@urql/core': 573 573 specifier: workspace:* 574 574 version: link:../core ··· 817 817 '@babel/traverse': 7.21.5(supports-color@5.5.0) 818 818 debug: 4.3.4(supports-color@5.5.0) 819 819 lodash.debounce: 4.0.8 820 - resolve: 1.22.1 820 + resolve: 1.22.2 821 821 semver: 6.3.0 822 822 transitivePeerDependencies: 823 823 - supports-color ··· 971 971 dependencies: 972 972 '@babel/types': 7.21.5 973 973 974 + /@babel/parser@7.22.4: 975 + resolution: {integrity: sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==} 976 + engines: {node: '>=6.0.0'} 977 + hasBin: true 978 + dependencies: 979 + '@babel/types': 7.22.4 980 + dev: true 981 + 974 982 /@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.13.12(@babel/core@7.21.5): 975 983 resolution: {integrity: sha512-d0u3zWKcoZf379fOeJdr1a5WPDny4aOFZ6hlfKivgK0LY7ZxNfoaHL2fWwdGtHyVvra38FC+HVYkO+byfSA8AQ==} 976 984 peerDependencies: ··· 1809 1817 '@babel/helper-validator-identifier': 7.19.1 1810 1818 to-fast-properties: 2.0.0 1811 1819 1820 + /@babel/types@7.22.4: 1821 + resolution: {integrity: sha512-Tx9x3UBHTTsMSW85WB2kphxYQVvrZ/t1FxD88IpSgIjiUJlCm9z+xWIDwyo1vffTwSqteqyznB8ZE9vYYk16zA==} 1822 + engines: {node: '>=6.9.0'} 1823 + dependencies: 1824 + '@babel/helper-string-parser': 7.21.5 1825 + '@babel/helper-validator-identifier': 7.19.1 1826 + to-fast-properties: 2.0.0 1827 + dev: true 1828 + 1812 1829 /@babel/types@7.8.3: 1813 1830 resolution: {integrity: sha512-jBD+G8+LWpMBBWvVcdr4QysjUE4mU/syrhN17o1u3gx0/WzJB1kwiVZAXRtWbsIPOwW8pF/YJV5+nmetPzepXg==} 1814 1831 dependencies: ··· 2647 2664 react-dom: 17.0.2(react@17.0.2) 2648 2665 react-lifecycles-compat: 3.0.4 2649 2666 2650 - /@react-native-async-storage/async-storage@1.15.5: 2651 - resolution: {integrity: sha512-4AYehLH39B9a8UXCMf3ieOK+G61wGMP72ikx6/XSMA0DUnvx0PgaeaT2Wyt06kTrDTy8edewKnbrbeqwaM50TQ==} 2667 + /@react-native-async-storage/async-storage@1.18.2: 2668 + resolution: {integrity: sha512-dM8AfdoeIxlh+zqgr0o5+vCTPQ0Ru1mrPzONZMsr7ufp5h+6WgNxQNza7t0r5qQ6b04AJqTlBNixTWZxqP649Q==} 2652 2669 peerDependencies: 2653 - react-native: ^0.60.6 || ^0.61.5 || ^0.62.2 || ^0.63.2 || ^0.64.0 || 1000.0.0 2670 + react-native: ^0.0.0-0 || 0.60 - 0.72 || 1000.0.0 2654 2671 peerDependenciesMeta: 2655 2672 react-native: 2656 2673 optional: true 2657 2674 dependencies: 2658 - deep-assign: 3.0.0 2675 + merge-options: 3.0.4 2659 2676 dev: true 2660 2677 2661 - /@react-native-community/netinfo@6.0.0: 2662 - resolution: {integrity: sha512-Z9M8VGcF2IZVOo2x+oUStvpCW/8HjIRi4+iQCu5n+PhC7OqCQX58KYAzdBr///alIfRXiu6oMb+lK+rXQH1FvQ==} 2678 + /@react-native-community/netinfo@9.3.10: 2679 + resolution: {integrity: sha512-OwnqoJUp/4sa9e3ju+wQavAa8l0fiA3DheeLMKzKxtKeAe0CA7bNxWRM752JvRQ6A/igPnt1V0zSlu5owvQEuA==} 2663 2680 peerDependencies: 2664 2681 react-native: '>=0.59' 2665 2682 peerDependenciesMeta: ··· 2686 2703 rollup: 3.21.1 2687 2704 dev: true 2688 2705 2689 - /@rollup/plugin-commonjs@24.1.0(rollup@3.21.1): 2690 - resolution: {integrity: sha512-eSL45hjhCWI0jCCXcNtLVqM5N1JlBGvlFfY0m6oOYnLCJ6N0qEXoZql4sY2MOUArzhH4SA/qBpTxvvZp2Sc+DQ==} 2706 + /@rollup/plugin-commonjs@25.0.0(rollup@3.21.1): 2707 + resolution: {integrity: sha512-hoho2Kay9TZrLu0bnDsTTCaj4Npa+THk9snajP/XDNb9a9mmjTjh52EQM9sKl3HD1LsnihX7js+eA2sd2uKAhw==} 2691 2708 engines: {node: '>=14.0.0'} 2692 2709 peerDependencies: 2693 2710 rollup: ^2.68.0||^3.0.0 ··· 2704 2721 rollup: 3.21.1 2705 2722 dev: true 2706 2723 2707 - /@rollup/plugin-node-resolve@15.0.2(rollup@3.21.1): 2708 - resolution: {integrity: sha512-Y35fRGUjC3FaurG722uhUuG8YHOJRJQbI6/CkbRkdPotSpDj9NtIN85z1zrcyDcCQIW4qp5mgG72U+gJ0TAFEg==} 2724 + /@rollup/plugin-node-resolve@15.1.0(rollup@3.21.1): 2725 + resolution: {integrity: sha512-xeZHCgsiZ9pzYVgAo9580eCGqwh/XCEUM9q6iQfGNocjgkufHAqC3exA+45URvhiYV8sBF9RlBai650eNs7AsA==} 2709 2726 engines: {node: '>=14.0.0'} 2710 2727 peerDependencies: 2711 2728 rollup: ^2.78.0||^3.0.0 ··· 2715 2732 dependencies: 2716 2733 '@rollup/pluginutils': 5.0.2(rollup@3.21.1) 2717 2734 '@types/resolve': 1.20.2 2718 - deepmerge: 4.3.0 2735 + deepmerge: 4.3.1 2719 2736 is-builtin-module: 3.2.1 2720 2737 is-module: 1.0.0 2721 - resolve: 1.22.1 2738 + resolve: 1.22.2 2722 2739 rollup: 3.21.1 2723 2740 dev: true 2724 2741 ··· 2882 2899 2883 2900 /@types/estree@1.0.0: 2884 2901 resolution: {integrity: sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==} 2902 + dev: true 2903 + 2904 + /@types/estree@1.0.1: 2905 + resolution: {integrity: sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==} 2885 2906 dev: true 2886 2907 2887 2908 /@types/glob@7.1.3: ··· 3214 3235 /@vue/compiler-core@3.2.47: 3215 3236 resolution: {integrity: sha512-p4D7FDnQb7+YJmO2iPEv0SQNeNzcbHdGByJDsT4lynf63AFkOTFN07HsiRSvjGo0QrxR/o3d0hUyNCUnBU2Tig==} 3216 3237 dependencies: 3217 - '@babel/parser': 7.21.5 3238 + '@babel/parser': 7.22.4 3218 3239 '@vue/shared': 3.2.47 3219 3240 estree-walker: 2.0.2 3220 3241 source-map: 0.6.1 3221 3242 dev: true 3222 3243 3244 + /@vue/compiler-core@3.3.4: 3245 + resolution: {integrity: sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==} 3246 + dependencies: 3247 + '@babel/parser': 7.22.4 3248 + '@vue/shared': 3.3.4 3249 + estree-walker: 2.0.2 3250 + source-map-js: 1.0.2 3251 + dev: true 3252 + optional: true 3253 + 3223 3254 /@vue/compiler-dom@3.2.47: 3224 3255 resolution: {integrity: sha512-dBBnEHEPoftUiS03a4ggEig74J2YBZ2UIeyfpcRM2tavgMWo4bsEfgCGsu+uJIL/vax9S+JztH8NmQerUo7shQ==} 3225 3256 dependencies: 3226 3257 '@vue/compiler-core': 3.2.47 3227 3258 '@vue/shared': 3.2.47 3228 3259 dev: true 3260 + 3261 + /@vue/compiler-dom@3.3.4: 3262 + resolution: {integrity: sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==} 3263 + dependencies: 3264 + '@vue/compiler-core': 3.3.4 3265 + '@vue/shared': 3.3.4 3266 + dev: true 3267 + optional: true 3229 3268 3230 3269 /@vue/compiler-sfc@3.2.47: 3231 3270 resolution: {integrity: sha512-rog05W+2IFfxjMcFw10tM9+f7i/+FFpZJJ5XHX72NP9eC2uRD+42M3pYcQqDXVYoj74kHMSEdQ/WmCjt8JFksQ==} ··· 3249 3288 '@vue/shared': 3.2.47 3250 3289 dev: true 3251 3290 3291 + /@vue/compiler-ssr@3.3.4: 3292 + resolution: {integrity: sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==} 3293 + dependencies: 3294 + '@vue/compiler-dom': 3.3.4 3295 + '@vue/shared': 3.3.4 3296 + dev: true 3297 + optional: true 3298 + 3252 3299 /@vue/reactivity-transform@3.2.47: 3253 3300 resolution: {integrity: sha512-m8lGXw8rdnPVVIdIFhf0LeQ/ixyHkH5plYuS83yop5n7ggVJU+z5v0zecwEnX7fa7HNLBhh2qngJJkxpwEEmYA==} 3254 3301 dependencies: ··· 3290 3337 vue: 3.2.47 3291 3338 dev: true 3292 3339 3340 + /@vue/server-renderer@3.3.4(vue@3.2.47): 3341 + resolution: {integrity: sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==} 3342 + peerDependencies: 3343 + vue: 3.3.4 3344 + dependencies: 3345 + '@vue/compiler-ssr': 3.3.4 3346 + '@vue/shared': 3.3.4 3347 + vue: 3.2.47 3348 + dev: true 3349 + optional: true 3350 + 3293 3351 /@vue/shared@3.2.47: 3294 3352 resolution: {integrity: sha512-BHGyyGN3Q97EZx0taMQ+OLNuZcW3d37ZEVmEAyeoA9ERdGvm9Irc/0Fua8SNyOtV1w6BS4q25wbMzJujO9HIfQ==} 3295 3353 dev: true 3296 3354 3355 + /@vue/shared@3.3.4: 3356 + resolution: {integrity: sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==} 3357 + dev: true 3358 + optional: true 3359 + 3297 3360 /@vue/test-utils@2.3.0(vue@3.2.47): 3298 3361 resolution: {integrity: sha512-S8/9Z+B4VSsTUNtZtzS7J1TfxJbf10n+gcH9X8cASbG0Tp7qD6vqs/sUNlmpzk6i7+pP00ptauJp9rygyW89Ww==} 3299 3362 peerDependencies: ··· 3302 3365 js-beautify: 1.14.6 3303 3366 vue: 3.2.47 3304 3367 optionalDependencies: 3305 - '@vue/compiler-dom': 3.2.47 3306 - '@vue/server-renderer': 3.2.47(vue@3.2.47) 3368 + '@vue/compiler-dom': 3.3.4 3369 + '@vue/server-renderer': 3.3.4(vue@3.2.47) 3307 3370 dev: true 3308 3371 3309 3372 /@webassemblyjs/ast@1.9.0: ··· 4429 4492 bluebird: 3.7.2 4430 4493 chownr: 1.1.4 4431 4494 figgy-pudding: 3.5.2 4432 - glob: 7.1.6 4495 + glob: 7.2.3 4433 4496 graceful-fs: 4.2.10 4434 4497 infer-owner: 1.0.4 4435 4498 lru-cache: 5.1.1 ··· 5800 5863 pify: 2.3.0 5801 5864 strip-dirs: 2.1.0 5802 5865 5803 - /deep-assign@3.0.0: 5804 - resolution: {integrity: sha512-YX2i9XjJ7h5q/aQ/IM9PEwEnDqETAIYbggmdDB3HLTlSgo1CxPsj6pvhPG68rq6SVE0+p+6Ywsm5fTYNrYtBWw==} 5805 - engines: {node: '>=0.10.0'} 5806 - deprecated: Check out `lodash.merge` or `merge-options` instead. 5807 - dependencies: 5808 - is-obj: 1.0.1 5809 - dev: true 5810 - 5811 5866 /deep-eql@4.1.3: 5812 5867 resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==} 5813 5868 engines: {node: '>=6'} ··· 5833 5888 resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} 5834 5889 dev: true 5835 5890 5836 - /deepmerge@4.3.0: 5837 - resolution: {integrity: sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og==} 5891 + /deepmerge@4.3.1: 5892 + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} 5838 5893 engines: {node: '>=0.10.0'} 5839 5894 dev: true 5840 5895 ··· 7710 7765 once: 1.4.0 7711 7766 path-is-absolute: 1.0.1 7712 7767 7768 + /glob@7.2.3: 7769 + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} 7770 + dependencies: 7771 + fs.realpath: 1.0.0 7772 + inflight: 1.0.6 7773 + inherits: 2.0.4 7774 + minimatch: 3.1.2 7775 + once: 1.4.0 7776 + path-is-absolute: 1.0.1 7777 + 7713 7778 /glob@8.1.0: 7714 7779 resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} 7715 7780 engines: {node: '>=12'} ··· 8613 8678 dependencies: 8614 8679 has: 1.0.3 8615 8680 8681 + /is-core-module@2.12.1: 8682 + resolution: {integrity: sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==} 8683 + dependencies: 8684 + has: 1.0.3 8685 + 8616 8686 /is-data-descriptor@0.1.4: 8617 8687 resolution: {integrity: sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==} 8618 8688 engines: {node: '>=0.10.0'} ··· 8766 8836 resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} 8767 8837 engines: {node: '>=0.12.0'} 8768 8838 8769 - /is-obj@1.0.1: 8770 - resolution: {integrity: sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==} 8771 - engines: {node: '>=0.10.0'} 8772 - dev: true 8773 - 8774 8839 /is-obj@2.0.0: 8775 8840 resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} 8776 8841 engines: {node: '>=8'} ··· 8825 8890 /is-reference@1.2.1: 8826 8891 resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} 8827 8892 dependencies: 8828 - '@types/estree': 1.0.0 8893 + '@types/estree': 1.0.1 8829 8894 dev: true 8830 8895 8831 8896 /is-regex@1.1.4: ··· 9741 9806 /merge-descriptors@1.0.1: 9742 9807 resolution: {integrity: sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==} 9743 9808 9809 + /merge-options@3.0.4: 9810 + resolution: {integrity: sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==} 9811 + engines: {node: '>=10'} 9812 + dependencies: 9813 + is-plain-obj: 2.1.0 9814 + dev: true 9815 + 9744 9816 /merge-stream@2.0.0: 9745 9817 resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} 9746 9818 dev: true ··· 10284 10356 hasBin: true 10285 10357 dependencies: 10286 10358 env-paths: 2.2.1 10287 - glob: 7.1.6 10359 + glob: 7.2.3 10288 10360 graceful-fs: 4.2.10 10289 10361 make-fetch-happen: 10.2.1 10290 10362 nopt: 6.0.0 ··· 12658 12730 path-parse: 1.0.7 12659 12731 supports-preserve-symlinks-flag: 1.0.0 12660 12732 12733 + /resolve@1.22.2: 12734 + resolution: {integrity: sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==} 12735 + hasBin: true 12736 + dependencies: 12737 + is-core-module: 2.12.1 12738 + path-parse: 1.0.7 12739 + supports-preserve-symlinks-flag: 1.0.0 12740 + 12661 12741 /resolve@2.0.0-next.4: 12662 12742 resolution: {integrity: sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==} 12663 12743 hasBin: true ··· 12720 12800 resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} 12721 12801 hasBin: true 12722 12802 dependencies: 12723 - glob: 7.1.6 12803 + glob: 7.2.3 12724 12804 dev: true 12725 12805 12726 12806 /rimraf@4.4.0:
+9
scripts/rollup/config.mjs
··· 88 88 // When this changes (and terser mangles the output) this will interfere with Node.js ESM intercompatibility 89 89 esModule: format !== 'esm', 90 90 externalLiveBindings: format !== 'esm', 91 + interop(id) { 92 + if (format === 'esm') { 93 + return 'esModule'; 94 + } else if (id === 'react') { 95 + return 'defaultOnly'; 96 + } else { 97 + return 'auto'; 98 + } 99 + }, 91 100 generatedCode: { 92 101 preset: 'es5', 93 102 reservedNamesAsProps: false,
-3
scripts/rollup/plugins.mjs
··· 27 27 commonjs({ 28 28 ignoreGlobal: true, 29 29 include: /\/node_modules\//, 30 - namedExports: settings.hasReact ? { 31 - react: Object.keys(React) 32 - } : {}, 33 30 }), 34 31 ]; 35 32