v5 (#2138)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* prepare for the next major version * [v5] breaking: drop default exports (#2238) * fix: drop default exports for v5 * chore: remove default from cjs build * refactor: export shallow in v5 * fix: remove `addModuleExport` option for cjs. * [v5] breaking: drop deprecated features (#2235) * fix: remove deprecated v4 features * chore(build): remove context * docs(typescript): remove deprecated equals api * docs(persist): remove old persist api * chore: run yarn prettier on typescript docs * Discard changes to docs/guides/typescript.md * Discard changes to docs/integrations/persisting-store-data.md * Discard changes to tests/shallow.test.tsx * Discard changes to tests/vanilla/subscribe.test.tsx * [v5] breaking: make React 18 as minimal requirement (#2236) * fix: update package.json to require react 18+ * chore: update github actions to test on react 18+ * chore: remove devtools-skip hack from actions * chore(test): remove CI-SKIP from devtools tests * [v5] breaking: make use-sync-external-store an optional peer dependency (#2237) * chore: make use-sync-external-store optional peerDep * fix: use correct versions in package.json * [v5] breaking: require TypeScript 4.5 and update tests (#2257) * breaking(types): TS requirement * wip: latest only * wip: latest only 2 * drop ts <4.4 * wip: do not skip lib checkes * use latest node types * drop ts 4.4 * [v5]: drop "module" condition (#2270) * Update package json in order to remove module * Update rollup config in order to remove module config * Update patch esm script * Update package json to general exports and update node version (#2272) * [v5]: drop UMD/SystemJS builds (#2287) * Update rollup config in order to drop system js and umd builds * Update packages * Clean up files * Update rollup config * Update gh workflows * Minor fixes * Minor fixes * Minor fixes * Minor fixes * Testing * Minor changes * Minor fixes * remove `WithReact` type (#2300) * 5.0.0-alpha.0 * [v5]: do not depend on use-sync-external-store (#2301) * [v5]: do not depend on use-sync-external-store * memo get(server)snapshot * 5.0.0-alpha.1 * [v5]: refactor useMemoSelector (#2302) * [v5]: refactor useMemoSelector * add a test * Revert "[v5]: refactor useMemoSelector" This reverts commit b3c8b15586a270d12c335e566975021adf86c815. * Revert "Revert "[v5]: refactor useMemoSelector"" This reverts commit 3c47301d23e18dffb7d72df36595f83570d15d08. * [v5]: separate react entry point (#2303) * 5.0.0-alpha.2 * 5.0.0-alpha.3 * refactor: Switch to Object.hasOwn (#2365) * [v5] drop es5 (#2380) * update yarn lock * 5.0.0-alpha.4 * [v5]: follow React "standard" way with breaking behavioral change (#2395) * [v5]: follow React "standard" way with breaking behavioral change * add test * 5.0.0-alpha.5 * [v5] Rewrite shallow to support iterables (#2427) * [v5] fix rollup config for cjs (#2433) * 5.0.0-alpha.6 * no production build test * recover types that are dropped in #2462 * remove unused replacement * [v5] Remove Devtools warning (#2466) * chore: remove devtools extension warning * docs: add devtools link to readme * chore: remove unused test * chrome: remove unused tests * chore: remove unused test * Revert "chore: remove unused test" This reverts commit 0fa2a75f4936d960f703bf19e8f3505962cd628e. * update test name * update pnpm lock * fix merge main * add migration guide * fix typos * 5.0.0-beta.0 * update migration doc * fix merge main * fix merge main (prettier) * 5.0.0-beta.1 * fix(types)!: require complete state if `setState`'s `replace` flag is set (#2580) * fix(types): require complete state if `setState`'s `replace` flag is set * switch to variant 2 * fix type errors * update setState types for devtools and immer * make devtools setState non-generic * add migration guide * merge migration guides * run prettier * Update tests/middlewareTypes.test.tsx --------- Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> Co-authored-by: daishi <daishi@axlight.com> * 5.0.0-beta.2 * move v5 migration doc * fix ci * missing commmit * remove unused rule exclusion * comment about react compiler * revert eslint config ---------
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Charles Kornoelje <33156025+charkour@users.noreply.github.com>
- Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>
- Co-authored-by: Ekin Dursun <ekindursun@gmail.com>
- Co-authored-by: Simon Farshid <simon.farshid@outlook.com>
Diff stats
29 files+467 added−2504 removed
- tests:+88 added−254 removed
- other:+379 added−2250 removed
Provenance
- Commit
e247220- Tree
50cb4a5- Author
Daishi Kato <dai-shi@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
53e5a2a
29 files changed+467 added−2504 removed
modified:.github/workflows/test-multiple-builds.yml+2 added-19 removed
10 unmodified lines1112131415161516171819202 unmodified lines2324252627282930272829306 unmodified lines373839404541424344454647535455565758596061626364484950515210 unmodified lines runs-on: ubuntu-latest strategy: fail-fast: false matrix: build: [cjs, esm, umd] env: [development, production] build: [cjs, esm] env: [development] # [development, production] steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v42 unmodified lines cache: 'pnpm' cache-dependency-path: '**/pnpm-lock.yaml' - run: pnpm install --frozen-lockfile - run: pnpm build - name: Use React 17 for production test if: ${{ matrix.env == 'production' }} run: | pnpm add -D react@17.0.2 react-dom@17.0.2 @testing-library/react@12.1.4 - name: Patch for DEV-ONLY if: ${{ matrix.env == 'development' }} run: | sed -i~ "s/it[.a-zA-Z]*('\[DEV-ONLY\]/it('/" tests/*.tsx6 unmodified lines - name: Patch for CJS if: ${{ matrix.build == 'cjs' }} run: | sed -i~ "s/resolve('\.\/src\(.*\)\.ts')/resolve('\.\/dist\1.js')/" vitest.config.ts sed -i~ "s/module.exports.createStore = vanilla.createStore;//" dist/index.js - name: Patch for ESM if: ${{ matrix.build == 'esm' }} run: | sed -i~ "s/resolve('\.\/src\(.*\)\.ts')/resolve('\.\/dist\/esm\1.mjs')/" vitest.config.ts sed -i~ "1s/^/import.meta.env=import.meta.env||{};import.meta.env.MODE='${NODE_ENV}';/" tests/*.tsx env: NODE_ENV: ${{ matrix.env }} - name: Patch for UMD if: ${{ matrix.build == 'umd' }} run: | sed -i~ "s/resolve('\.\/src\(.*\)\.ts')/resolve('\.\/dist\/umd\1.${NODE_ENV}.js')/" vitest.config.ts env: NODE_ENV: ${{ matrix.env }} - name: Patch for SystemJS if: ${{ matrix.build == 'system' }} run: | sed -i~ "s/resolve('\.\/src\(.*\)\.ts')/resolve('\.\/dist\/system\1.${NODE_ENV}.js')/" vitest.config.ts env: NODE_ENV: ${{ matrix.env }} - name: Test ${{ matrix.build }} ${{ matrix.env }} run: | pnpm test:spec env: NODE_ENV: ${{ matrix.env }}modified:.github/workflows/test-multiple-versions.yml-30 removed
25 unmodified lines26272829303130313233343536394041424344454647484950515253543738394041424344456465666768697071727374754647484925 unmodified lines strategy: fail-fast: false matrix: react: - 16.8.0 - 17.0.0 - 18.0.0 - 18.1.0 - 18.2.0 - 18.3.1 - 19.0.0-rc.0 - 19.0.0-rc-49496d49-20240814 - 0.0.0-experimental-49496d49-20240814 devtools-skip: - CI-MATRIX-NOSKIP include: - devtools-skip: CI-MATRIX-[2345] react: 16.8.0 - devtools-skip: CI-MATRIX-[1345] react: 16.8.0 - devtools-skip: CI-MATRIX-[1245] react: 16.8.0 - devtools-skip: CI-MATRIX-[1235] react: 16.8.0 - devtools-skip: CI-MATRIX-[1234] react: 16.8.0 exclude: - devtools-skip: CI-MATRIX-NOSKIP react: 16.8.0 steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: node-version: 18 cache: 'pnpm' cache-dependency-path: '**/pnpm-lock.yaml' - run: pnpm install --frozen-lockfile - name: Install legacy testing-library if: ${{ startsWith(matrix.react, '16.') || startsWith(matrix.react, '17.') }} run: pnpm add -D @testing-library/react@12.1.4 - name: Patch for React 16 if: ${{ startsWith(matrix.react, '16.') }} run: | sed -i~ '1s/^/import React from "react";/' tests/*.tsx sed -i~ 's/"jsx": "react-jsx"/"jsx": "react"/' tsconfig.json sed -i~ 's/import\.meta\.env[?]\.MODE/"DEVELOPMENT".toLowerCase()/' src/*.ts src/*/*.ts sed -i~ "s/it('\[${DEVTOOLS_SKIP}\]/it.skip('/" tests/devtools.test.tsx env: DEVTOOLS_SKIP: ${{ matrix.devtools-skip }} - name: Test ${{ matrix.react }} ${{ matrix.devtools-skip }} run: | pnpm add -D react@${{ matrix.react }} react-dom@${{ matrix.react }} pnpm test:specmodified:.github/workflows/test-old-typescript.yml-11 removed
21 unmodified lines2223242526272829262728298 unmodified lines3839404146474842434445464748495058596061515221 unmodified lines - 4.8.4 - 4.7.4 - 4.6.4 - 4.5.5 - 4.4.4 - 4.3.5 - 4.2.3 - 4.1.5 steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v48 unmodified lines run: | sed -i~ 's/"verbatimModuleSyntax": true,//' tsconfig.json - name: Patch for Old TS run: | sed -i~ 's/\/\/ @ts-expect-error.*\[LATEST-TS-ONLY\]//' tests/*.tsx sed -i~ 's/"target":/"skipLibCheck":true,"target":/' tsconfig.json sed -i~ 's/"exactOptionalPropertyTypes": true,//' tsconfig.json sed -i~ 's/"moduleResolution": "bundler",/"moduleResolution": "node",/' tsconfig.json sed -i~ 's/"allowImportingTsExtensions": true,//' tsconfig.json sed -i~ 's/"zustand": \["\.\/src\/index\.ts"\],/"zustand": [".\/dist\/index.d.ts"],/' tsconfig.json sed -i~ 's/"zustand\/\*": \["\.\/src\/\*\.ts"\]/"zustand\/*": [".\/dist\/*.d.ts"]/' tsconfig.json sed -i~ 's/"include": .*/"include": ["src\/types.d.ts", "dist\/**\/*", "tests\/**\/*"],/' tsconfig.json pnpm json -I -f package.json -e "this.resolutions={}; this.resolutions['@types/node']='18.13.0';" pnpm add -D @types/node@18.13.0 - name: Install old TypeScript run: pnpm add -D typescript@${{ matrix.typescript }} - name: Patch testing setup for Old TS if: ${{ matrix.typescript == '4.4.4' || matrix.typescript == '4.3.5' || matrix.typescript == '4.2.3' || matrix.typescript == '4.1.5' }} run: | pnpm add -D vitest@0.33.0 @vitest/coverage-v8@0.33.0 @vitest/ui@0.33.0 - name: Test ${{ matrix.typescript }} run: pnpm test:typesmodified:docs/guides/typescript.md+30 added
230 unmodified lines231 For a usual statically typed language, this is impossible. But thanks to TypeScript, Zustand has something called a "higher-kinded mutator" that makes this possible. If you are dealing with complex type problems, like typing a middleware or using the `StateCreator` type, you will have to understand this implementation detail. For this, you can [check out #710](https://github.com/pmndrs/zustand/issues/710).232 233 If you are eager to know what the answer is to this particular problem then you can [see it here](#middleware-that-changes-the-store-type).234 235+### Handling Dynamic `replace` Flag236+237+If the value of the `replace` flag is not known at compile time and is determined dynamically, you might face issues. To handle this, you can use a workaround by annotating the `replace` parameter with `as any`:238+239+```ts240+const replaceFlag = Math.random() > 0.5241+store.setState(partialOrFull, replaceFlag as any)242+```243+244+#### Example with `as any` Workaround245+246+```ts247+import { create } from 'zustand'248+249+interface BearState {250+ bears: number251+ increase: (by: number) => void252+}253+254+const useBearStore = create<BearState>()((set) => ({255+ bears: 0,256+ increase: (by) => set((state) => ({ bears: state.bears + by })),257+}))258+259+const replaceFlag = Math.random() > 0.5260+useBearStore.setState({ bears: 5 }, replaceFlag as any) // Using the workaround261+```262+263+By following this approach, you can ensure that your code handles dynamic `replace` flags without encountering type issues.264+265 ## Common recipes266 267 ### Middleware that doesn't change the store type268 256 unmodified linesadded:docs/migrations/migrating-to-v5.md+171 added
1+---2+title: 'How to Migrate to v5 from v4'3+nav: 304+---5+6+# How to Migrate to v5 from v47+8+We highly recommend to update to the latest version of v4, before migrating to v5. It will show all deprecation warnings without breaking your app.9+10+## Changes in v511+12+- Drop default exports13+- Drop deprecated features14+- Make React 18 the minimum required version15+- Make use-sync-external-store a peer dependency (required for `createWithEqualityFn` and `useStoreWithEqualityFn` in `zustand/traditional`)16+- Make TypeScript 4.5 the minimum required version17+- Drop UMD/SystemJS support18+- Organize entry points in the package.json19+- Drop ES5 support20+- Stricter types when setState's replace flag is set21+- Other small improvements (technically breaking changes)22+23+## Migration Guide24+25+### Using custom equality functions such as `shallow`26+27+The `create` function in v5 does not support customizing equality function.28+29+If you use custom equality function such as `shallow`,30+the easiest migration is to use `createWithEqualityFn`.31+32+```js33+// v434+import { create } from 'zustand'35+import { shallow } from 'zustand/shallow'36+37+const useCountStore = create((set) => ({38+ count: 0,39+ text: 'hello',40+ // ...41+}))42+43+const Component = () => {44+ const { count, text } = useCountStore(45+ (state) => ({46+ count: state.count,47+ text: state.text,48+ }),49+ shallow,50+ )51+ // ...52+}53+```54+55+That can be done with `createWithEqualityFn` in v5:56+57+```bash58+npm install use-sync-external-store59+```60+61+```js62+// v563+import { createWithEqualityFn as create } from 'zustand/traditional'64+65+// The rest is the same as v466+```67+68+Alternatively, for the `shallow` use case, you can use `useShallow` hook:69+70+```js71+// v572+import { create } from 'zustand'73+import { useShallow } from 'zustand/shallow'74+75+const useCountStore = create((set) => ({76+ count: 0,77+ text: 'hello',78+ // ...79+}))80+81+const Component = () => {82+ const { count, text } = useCountStore(83+ useShallow((state) => ({84+ count: state.count,85+ text: state.text,86+ })),87+ )88+ // ...89+}90+```91+92+### Requiring stable selector outputs93+94+There is a behavioral change in v5 to match React default behavior.95+If a selector returns a new reference, it may cause infinite loops.96+97+For example, this may cause infinite loops.98+99+```js100+// v4101+const action = useMainStore((state) => {102+ return state.action ?? () => {}103+})104+```105+106+The error message will be something like this:107+108+```109+Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.110+```111+112+To fix it, make sure the selector function returns a stable reference.113+114+```js115+// v5116+117+const FALLBACK_ACTION = () => {}118+119+const action = useMainStore((state) => {120+ return state.action ?? FALLBACK_ACTION121+})122+```123+124+Alternatively, if you need v4 behavior, `createWithEqualityFn` will do.125+126+```js127+// v5128+import { createWithEqualityFn as create } from 'zustand/traditional'129+```130+131+### Stricter types when setState's replace flag is set (Typescript only)132+133+```diff134+- setState:135+- (partial: T | Partial<T> | ((state: T) => T | Partial<T>), replace?: boolean | undefined) => void;136++ setState:137++ (partial: T | Partial<T> | ((state: T) => T | Partial<T>), replace?: false) => void;138++ (state: T | ((state: T) => T), replace: true) => void;139+```140+141+If you are not using the `replace` flag, no migration is required.142+143+If you are using the `replace` flag and it's set to `true`, you must provide a complete state object.144+This change ensures that `store.setState({}, true)` (which results in an invalid state) is no longer considered valid.145+146+**Examples:**147+148+```ts149+// Partial state update (valid)150+store.setState({ key: 'value' })151+152+// Complete state replacement (valid)153+store.setState({ key: 'value' }, true)154+155+// Incomplete state replacement (invalid)156+store.setState({}, true) // Error157+```158+159+#### Handling Dynamic `replace` Flag160+161+If the value of the `replace` flag is dynamic and determined at runtime, you might face issues. To handle this, you can use a workaround by annotating the `replace` parameter with `as any`:162+163+```ts164+const replaceFlag = Math.random() > 0.5165+store.setState(partialOrFull, replaceFlag as any)166+```167+168+## Links169+170+- https://github.com/pmndrs/zustand/pull/2138171+- https://github.com/pmndrs/zustand/pull/2580modified:src/middleware/devtools.ts+19 added-15 removed
47 unmodified lines48 : never49 50 type WithDevtools<S> = Write<S, StoreDevtools<S>>51 52+type Action =53+ | string54+ | {55+ type: string56+ [x: string | number | symbol]: unknown57+ }58 type StoreDevtools<S> = S extends {53- setState: (...a: infer Sa) => infer Sr59+ setState: {60+ // capture both overloads of setState61+ (...a: infer Sa1): infer Sr162+ (...a: infer Sa2): infer Sr263+ }64 }65 ? {56- setState<A extends string | { type: string }>(57- ...a: [...a: TakeTwo<Sa>, action?: A]58- ): Sr66+ setState(...a: [...a: TakeTwo<Sa1>, action?: Action]): Sr167+ setState(...a: [...a: TakeTwo<Sa2>, action?: Action]): Sr268 }69 : never70 71 export interface DevtoolsOptions extends Config {89 unmodified lines161 try {162 extensionConnector =163 (enabled ?? import.meta.env?.MODE !== 'production') &&164 window.__REDUX_DEVTOOLS_EXTENSION__156- } catch (_e) {165+ } catch {166 // ignored167 }168 169 if (!extensionConnector) {161- if (import.meta.env?.MODE !== 'production' && enabled) {162- console.warn(163- '[zustand devtools middleware] Please install/enable Redux devtools extension',164- )165- }170 return fn(set, get, api)171 }172 173 const { connection, ...connectionInformation } =174 extractConnectionInformation(store, extensionConnector, options)175 176 let isRecording = true173- ;(api.setState as NamedSet<S>) = (state, replace, nameOrAction) => {174- const r = set(state, replace)177+ ;(api.setState as any) = ((state, replace, nameOrAction: Action) => {178+ const r = set(state, replace as any)179 if (!isRecording) return r180 const action: { type: string } =181 nameOrAction === undefined182 ? { type: anonymousActionType || 'anonymous' }14 unmodified lines197 [store]: api.getState(),198 },199 )200 return r197- }201+ }) as NamedSet<S>202 203 const setStateFromDevtools: StoreApi<S>['setState'] = (...a) => {204 const originalIsRecording = isRecording205 isRecording = false202- set(...a)206+ set(...(a as Parameters<typeof set>))207 isRecording = originalIsRecording208 }209 210 const initialState = fn(api.setState, get, api)61 unmodified lines272 }273 if (Object.keys(action.state as S).length !== 1) {274 console.error(275 `272- [zustand devtools middleware] Unsupported __setState action format. 276+ [zustand devtools middleware] Unsupported __setState action format.277 When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),278 and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }279 `,280 )105 unmodified linesmodified:src/middleware/immer.ts+13 added-5 removed
36 unmodified lines37 type StoreImmer<S> = S extends {38 getState: () => infer T39 setState: infer SetState40 }41- ? SetState extends (...a: infer A) => infer Sr41+ ? SetState extends {42+ (...a: infer A1): infer Sr143+ (...a: infer A2): infer Sr244+ }45 ? {46 setState(47 nextStateOrUpdater: T | Partial<T> | ((state: Draft<T>) => void),45- shouldReplace?: boolean | undefined,46- ...a: SkipTwo<A>47- ): Sr48+ shouldReplace?: false,49+ ...a: SkipTwo<A1>50+ ): Sr151+ setState(52+ nextStateOrUpdater: T | ((state: Draft<T>) => void),53+ shouldReplace: true,54+ ...a: SkipTwo<A2>55+ ): Sr256 }57 : never58 : never59 8 unmodified lines68 const nextState = (69 typeof updater === 'function' ? produce(updater as any) : updater70 ) as ((s: T) => T) | T | Partial<T>71 64- return set(nextState as any, replace, ...a)72+ return set(nextState, replace as any, ...a)73 }74 75 return initializer(store.setState, get, store)76 }2 unmodified linesmodified:src/middleware/persist.ts+5 added-222 removed
33 unmodified lines34 ): PersistStorage<S> | undefined {35 let storage: StateStorage | undefined36 try {37 storage = getStorage()38- } catch (_e) {38+ } catch {39 // prevent error if the storage is not defined (e.g. when server side rendering a page)40 return41 }42 const persistStorage: PersistStorage<S> = {23 unmodified lines66 export interface PersistOptions<S, PersistedState = S> {67 /** Name of the storage (must be unique) */68 name: string69 /**70- * @deprecated Use `storage` instead.71- * A function returning a storage.72- * The storage must fit `window.localStorage`'s api (or an async version of it).73- * For example the storage could be `AsyncStorage` from React Native.74- *75- * @default () => localStorage76- */77- getStorage?: () => StateStorage78- /**79- * @deprecated Use `storage` instead.80- * Use a custom serializer.81- * The returned string will be stored in the storage.82- *83- * @default JSON.stringify84- */85- serialize?: (state: StorageValue<S>) => string | Promise<string>86- /**87- * @deprecated Use `storage` instead.88- * Use a custom deserializer.89- * Must return an object matching StorageValue<S>90- *91- * @param str The storage's current value.92- * @default JSON.parse93- */94- deserialize?: (95- str: string,96- ) => StorageValue<PersistedState> | Promise<StorageValue<PersistedState>>97- /**70 * Use a custom persist storage.71 *72 * Combining `createJSONStorage` helps creating a persist storage73 * with JSON.parse and JSON.stringify.97 unmodified lines171 }172 }173 }174 203-const oldImpl: PersistImpl = (config, baseOptions) => (set, get, api) => {175+const persistImpl: PersistImpl = (config, baseOptions) => (set, get, api) => {176 type S = ReturnType<typeof config>177 let options = {206- getStorage: () => localStorage,207- serialize: JSON.stringify as (state: StorageValue<S>) => string,208- deserialize: JSON.parse as (str: string) => StorageValue<S>,209- partialize: (state: S) => state,210- version: 0,211- merge: (persistedState: unknown, currentState: S) => ({212- ...currentState,213- ...(persistedState as object),214- }),215- ...baseOptions,216- }217-218- let hasHydrated = false219- const hydrationListeners = new Set<PersistListener<S>>()220- const finishHydrationListeners = new Set<PersistListener<S>>()221- let storage: StateStorage | undefined222-223- try {224- storage = options.getStorage()225- } catch (_e) {226- // prevent error if the storage is not defined (e.g. when server side rendering a page)227- }228-229- if (!storage) {230- return config(231- (...args) => {232- console.warn(233- `[zustand persist middleware] Unable to update item '${options.name}', the given storage is currently unavailable.`,234- )235- set(...args)236- },237- get,238- api,239- )240- }241-242- const thenableSerialize = toThenable(options.serialize)243-244- const setItem = (): Thenable<void> => {245- const state = options.partialize({ ...get() })246-247- let errorInSync: Error | undefined248- const thenable = thenableSerialize({ state, version: options.version })249- .then((serializedValue) =>250- (storage as StateStorage).setItem(options.name, serializedValue),251- )252- .catch((e) => {253- errorInSync = e254- })255- if (errorInSync) {256- throw errorInSync257- }258- return thenable259- }260-261- const savedSetState = api.setState262-263- api.setState = (state, replace) => {264- savedSetState(state, replace)265- void setItem()266- }267-268- const configResult = config(269- (...args) => {270- set(...args)271- void setItem()272- },273- get,274- api,275- )276-277- // a workaround to solve the issue of not storing rehydrated state in sync storage278- // the set(state) value would be later overridden with initial state by create()279- // to avoid this, we merge the state from localStorage into the initial state.280- let stateFromStorage: S | undefined281-282- // rehydrate initial state with existing stored state283- const hydrate = () => {284- if (!storage) return285-286- hasHydrated = false287- hydrationListeners.forEach((cb) => cb(get()))288-289- const postRehydrationCallback =290- options.onRehydrateStorage?.(get()) || undefined291-292- // bind is used to avoid `TypeError: Illegal invocation` error293- return toThenable(storage.getItem.bind(storage))(options.name)294- .then((storageValue) => {295- if (storageValue) {296- return options.deserialize(storageValue)297- }298- })299- .then((deserializedStorageValue) => {300- if (deserializedStorageValue) {301- if (302- typeof deserializedStorageValue.version === 'number' &&303- deserializedStorageValue.version !== options.version304- ) {305- if (options.migrate) {306- return options.migrate(307- deserializedStorageValue.state,308- deserializedStorageValue.version,309- )310- }311- console.error(312- `State loaded from storage couldn't be migrated since no migrate function was provided`,313- )314- } else {315- return deserializedStorageValue.state316- }317- }318- })319- .then((migratedState) => {320- stateFromStorage = options.merge(321- migratedState as S,322- get() ?? configResult,323- )324-325- set(stateFromStorage as S, true)326- return setItem()327- })328- .then(() => {329- postRehydrationCallback?.(stateFromStorage, undefined)330- hasHydrated = true331- finishHydrationListeners.forEach((cb) => cb(stateFromStorage as S))332- })333- .catch((e: Error) => {334- postRehydrationCallback?.(undefined, e)335- })336- }337-338- ;(api as StoreApi<S> & StorePersist<S, S>).persist = {339- setOptions: (newOptions) => {340- options = {341- ...options,342- ...newOptions,343- }344-345- if (newOptions.getStorage) {346- storage = newOptions.getStorage()347- }348- },349- clearStorage: () => {350- storage?.removeItem(options.name)351- },352- getOptions: () => options,353- rehydrate: () => hydrate() as Promise<void>,354- hasHydrated: () => hasHydrated,355- onHydrate: (cb) => {356- hydrationListeners.add(cb)357-358- return () => {359- hydrationListeners.delete(cb)360- }361- },362- onFinishHydration: (cb) => {363- finishHydrationListeners.add(cb)364-365- return () => {366- finishHydrationListeners.delete(cb)367- }368- },369- }370-371- hydrate()372-373- return stateFromStorage || configResult374-}375-376-const newImpl: PersistImpl = (config, baseOptions) => (set, get, api) => {377- type S = ReturnType<typeof config>378- let options = {178 storage: createJSONStorage<S>(() => localStorage),179 partialize: (state: S) => state,180 version: 0,181 merge: (persistedState: unknown, currentState: S) => ({13 unmodified lines195 (...args) => {196 console.warn(197 `[zustand persist middleware] Unable to update item '${options.name}', the given storage is currently unavailable.`,198 )400- set(...args)199+ set(...(args as Parameters<typeof set>))200 },201 get,202 api,203 )9 unmodified lines213 214 const savedSetState = api.setState215 216 api.setState = (state, replace) => {418- savedSetState(state, replace)217+ savedSetState(state, replace as any)218 void setItem()219 }220 221 const configResult = config(222 (...args) => {424- set(...args)223+ set(...(args as Parameters<typeof set>))224 void setItem()225 },226 get,227 api,120 unmodified lines348 349 return stateFromStorage || configResult350 }351 553-const persistImpl: PersistImpl = (config, baseOptions) => {554- if (555- 'getStorage' in baseOptions ||556- 'serialize' in baseOptions ||557- 'deserialize' in baseOptions558- ) {559- if (import.meta.env?.MODE !== 'production') {560- console.warn(561- '[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead.',562- )563- }564- return oldImpl(config, baseOptions)565- }566- return newImpl(config, baseOptions)567-}568-352 type Persist = <353 T,354 Mps extends [StoreMutatorIdentifier, unknown][] = [],355 Mcs extends [StoreMutatorIdentifier, unknown][] = [],24 unmodified linesmodified:src/react/shallow.ts+4 added-3 removed
1-// import { useDebugValue } from 'react'1+// import { useRef } from 'react'2 // That doesnt work in ESM, because React libs are CJS only.3 // The following is a workaround until ESM is supported.4-// eslint-disable-next-line import/extensions4 import ReactExports from 'react'5 import { shallow } from '../vanilla/shallow.ts'6 7 const { useRef } = ReactExports4 unmodified lines12 return (state) => {13 const next = selector(state)14 return shallow(prev.current, next)15 ? (prev.current as U)16+ : // It might not work with React Compiler17+ // eslint-disable-next-line react-compiler/react-compiler17- : (prev.current = next)18+ (prev.current = next)19 }20 }modified:src/vanilla/shallow.ts+40 added-18 removed
1+const isIterable = (obj: object): obj is Iterable<unknown> =>2+ Symbol.iterator in obj3+4+const compareMapLike = (5+ iterableA: Iterable<[unknown, unknown]>,6+ iterableB: Iterable<[unknown, unknown]>,7+) => {8+ const mapA = iterableA instanceof Map ? iterableA : new Map(iterableA)9+ const mapB = iterableB instanceof Map ? iterableB : new Map(iterableB)10+ if (mapA.size !== mapB.size) return false11+ for (const [key, value] of mapA) {12+ if (!Object.is(value, mapB.get(key))) {13+ return false14+ }15+ }16+ return true17+}18+1-export function shallow<T>(objA: T, objB: T) {19+export function shallow<T>(objA: T, objB: T): boolean {20 if (Object.is(objA, objB)) {21 return true22 }23 if (4 unmodified lines28 ) {29 return false30 }31 14- if (objA instanceof Map && objB instanceof Map) {15- if (objA.size !== objB.size) return false16-17- for (const [key, value] of objA) {18- if (!Object.is(value, objB.get(key))) {19- return false20- }32+ if (isIterable(objA) && isIterable(objB)) {33+ const iteratorA = objA[Symbol.iterator]()34+ const iteratorB = objB[Symbol.iterator]()35+ let nextA = iteratorA.next()36+ let nextB = iteratorB.next()37+ if (38+ Array.isArray(nextA.value) &&39+ Array.isArray(nextB.value) &&40+ nextA.value.length === 2 &&41+ nextB.value.length === 242+ ) {43+ return compareMapLike(44+ objA as Iterable<[unknown, unknown]>,45+ objB as Iterable<[unknown, unknown]>,46+ )47 }22- return true23- }24-25- if (objA instanceof Set && objB instanceof Set) {26- if (objA.size !== objB.size) return false27-28- for (const value of objA) {29- if (!objB.has(value)) {48+ while (!nextA.done && !nextB.done) {49+ if (!Object.is(nextA.value, nextB.value)) {50 return false51 }52+ nextA = iteratorA.next()53+ nextB = iteratorB.next()54 }33- return true55+ return !!nextA.done && !!nextB.done56 }57 58 const keysA = Object.keys(objA)59 if (keysA.length !== Object.keys(objB).length) {60 return false61 }62 for (const keyA of keysA) {63 if (42- !Object.prototype.hasOwnProperty.call(objB, keyA as string) ||64+ !Object.hasOwn(objB, keyA as string) ||65 !Object.is(objA[keyA as keyof T], objB[keyA as keyof T])66 ) {67 return false68 }3 unmodified linesdeleted:src/context.ts-102 removed
1-// import {2-// createElement,3-// createContext as reactCreateContext,4-// useContext,5-// useMemo,6-// useRef,7-// } from 'react'8-// That doesnt work in ESM, because React libs are CJS only.9-// The following is a workaround until ESM is supported.10-// eslint-disable-next-line import/extensions11-import ReactExports from 'react'12-import type { ReactNode } from 'react'13-import type { StoreApi } from 'zustand'14-// eslint-disable-next-line import/extensions15-import { useStoreWithEqualityFn } from 'zustand/traditional'16-17-const {18- createElement,19- createContext: reactCreateContext,20- useContext,21- useMemo,22- useRef,23-} = ReactExports24-25-type UseContextStore<S extends StoreApi<unknown>> = {26- (): ExtractState<S>27- <U>(28- selector: (state: ExtractState<S>) => U,29- equalityFn?: (a: U, b: U) => boolean,30- ): U31-}32-33-type ExtractState<S> = S extends { getState: () => infer T } ? T : never34-35-type WithoutCallSignature<T> = { [K in keyof T]: T[K] }36-37-/**38- * @deprecated Use `createStore` and `useStore` for context usage39- */40-function createContext<S extends StoreApi<unknown>>() {41- if (import.meta.env?.MODE !== 'production') {42- console.warn(43- "[DEPRECATED] `context` will be removed in a future version. Instead use `import { createStore, useStore } from 'zustand'`. See: https://github.com/pmndrs/zustand/discussions/1180.",44- )45- }46- const ZustandContext = reactCreateContext<S | undefined>(undefined)47-48- const Provider = ({49- createStore,50- children,51- }: {52- createStore: () => S53- children: ReactNode54- }) => {55- const storeRef = useRef<S>()56-57- if (!storeRef.current) {58- storeRef.current = createStore()59- }60-61- return createElement(62- ZustandContext.Provider,63- { value: storeRef.current },64- children,65- )66- }67-68- const useContextStore: UseContextStore<S> = <StateSlice = ExtractState<S>>(69- selector?: (state: ExtractState<S>) => StateSlice,70- equalityFn?: (a: StateSlice, b: StateSlice) => boolean,71- ) => {72- const store = useContext(ZustandContext)73- if (!store) {74- throw new Error(75- 'Seems like you have not used zustand provider as an ancestor.',76- )77- }78- return useStoreWithEqualityFn(79- store,80- selector as (state: ExtractState<S>) => StateSlice,81- equalityFn,82- )83- }84-85- const useStoreApi = () => {86- const store = useContext(ZustandContext)87- if (!store) {88- throw new Error(89- 'Seems like you have not used zustand provider as an ancestor.',90- )91- }92- return useMemo<WithoutCallSignature<S>>(() => ({ ...store }), [store])93- }94-95- return {96- Provider,97- useStore: useContextStore,98- useStoreApi,99- }100-}101-102-export default createContextmodified:src/index.ts-1 removed
1 export * from './vanilla.ts'2 export * from './react.ts'3-export { default } from './react.ts'modified:src/react.ts+12 added-81 removed
1-// import { useDebugValue } from 'react'2-// import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector'3-// Those don't work in ESM, because React libs are CJS only.1+// import { useDebugValue, useSyncExternalStore } from 'react'2+// That doesn't work in ESM, because React libs are CJS only.3 // See: https://github.com/pmndrs/valtio/issues/4524 // The following is a workaround until ESM is supported.6-// eslint-disable-next-line import/extensions5 import ReactExports from 'react'8-// eslint-disable-next-line import/extensions9-import useSyncExternalStoreExports from 'use-sync-external-store/shim/with-selector'6 import { createStore } from './vanilla.ts'7 import type {8 Mutate,9 StateCreator,10 StoreApi,11 StoreMutatorIdentifier,12 } from './vanilla.ts'13 18-const { useDebugValue } = ReactExports19-const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports14+const { useDebugValue, useSyncExternalStore } = ReactExports15 16 type ExtractState<S> = S extends { getState: () => infer T } ? T : never17 18 type ReadonlyStoreApi<T> = Pick<19 StoreApi<T>,20 'getState' | 'getInitialState' | 'subscribe'21 >22 28-type WithReact<S extends ReadonlyStoreApi<unknown>> = S & {29- /** @deprecated please use api.getInitialState() */30- getServerState?: () => ExtractState<S>31-}32-33-let didWarnAboutEqualityFn = false34-23 const identity = <T>(arg: T): T => arg36-37-export function useStore<S extends WithReact<ReadonlyStoreApi<unknown>>>(24+export function useStore<S extends ReadonlyStoreApi<unknown>>(25 api: S,26 ): ExtractState<S>27 41-export function useStore<S extends WithReact<ReadonlyStoreApi<unknown>>, U>(28+export function useStore<S extends ReadonlyStoreApi<unknown>, U>(29 api: S,30 selector: (state: ExtractState<S>) => U,31 ): U32 46-/**47- * @deprecated The usage with three arguments is deprecated. Use `useStoreWithEqualityFn` from 'zustand/traditional'. The usage with one or two arguments is not deprecated.48- * https://github.com/pmndrs/zustand/discussions/193749- */50-export function useStore<S extends WithReact<ReadonlyStoreApi<unknown>>, U>(51- api: S,52- selector: (state: ExtractState<S>) => U,53- equalityFn: ((a: U, b: U) => boolean) | undefined,54-): U55-33 export function useStore<TState, StateSlice>(57- api: WithReact<ReadonlyStoreApi<TState>>,34+ api: ReadonlyStoreApi<TState>,35 selector: (state: TState) => StateSlice = identity as any,59- equalityFn?: (a: StateSlice, b: StateSlice) => boolean,36 ) {61- if (62- import.meta.env?.MODE !== 'production' &&63- equalityFn &&64- !didWarnAboutEqualityFn65- ) {66- console.warn(67- "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937",68- )69- didWarnAboutEqualityFn = true70- }71- const slice = useSyncExternalStoreWithSelector(37+ const slice = useSyncExternalStore(38 api.subscribe,73- api.getState,74- api.getServerState || api.getInitialState,75- selector,76- equalityFn,39+ () => selector(api.getState()),40+ () => selector(api.getInitialState()),41 )42 useDebugValue(slice)43 return slice44 }45 82-export type UseBoundStore<S extends WithReact<ReadonlyStoreApi<unknown>>> = {46+export type UseBoundStore<S extends ReadonlyStoreApi<unknown>> = {47 (): ExtractState<S>48 <U>(selector: (state: ExtractState<S>) => U): U85- /**86- * @deprecated Use `createWithEqualityFn` from 'zustand/traditional'87- */88- <U>(89- selector: (state: ExtractState<S>) => U,90- equalityFn: (a: U, b: U) => boolean,91- ): U49 } & S50 51 type Create = {52 <T, Mos extends [StoreMutatorIdentifier, unknown][] = []>(1 unmodified line54 ): UseBoundStore<Mutate<StoreApi<T>, Mos>>55 <T>(): <Mos extends [StoreMutatorIdentifier, unknown][] = []>(56 initializer: StateCreator<T, [], Mos>,57 ) => UseBoundStore<Mutate<StoreApi<T>, Mos>>101- /**102- * @deprecated Use `useStore` hook to bind store103- */104- <S extends StoreApi<unknown>>(store: S): UseBoundStore<S>58 }59 60 const createImpl = <T>(createState: StateCreator<T, [], []>) => {108- if (109- import.meta.env?.MODE !== 'production' &&110- typeof createState !== 'function'111- ) {112- console.warn(113- "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.",114- )115- }116- const api =117- typeof createState === 'function' ? createStore(createState) : createState61+ const api = createStore(createState)62 119- const useBoundStore: any = (selector?: any, equalityFn?: any) =>120- useStore(api, selector, equalityFn)63+ const useBoundStore: any = (selector?: any) => useStore(api, selector)64 65 Object.assign(useBoundStore, api)66 67 return useBoundStore68 }69 70 export const create = (<T>(createState: StateCreator<T, [], []> | undefined) =>71 createState ? createImpl(createState) : createImpl) as Create129-130-/**131- * @deprecated Use `import { create } from 'zustand'`132- */133-export default ((createState: any) => {134- if (import.meta.env?.MODE !== 'production') {135- console.warn(136- "[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`.",137- )138- }139- return create(createState)140-}) as Createmodified:src/shallow.ts+2 added-19 removed
1-import { shallow } from './vanilla/shallow.ts'2-3-// We will export this in v5 and remove default export4-// export { shallow } from './vanilla/shallow.ts'5-// export { useShallow } from './react/shallow.ts'6-7-/**8- * @deprecated Use `import { shallow } from 'zustand/shallow'`9- */10-export default ((objA, objB) => {11- if (import.meta.env?.MODE !== 'production') {12- console.warn(13- "[DEPRECATED] Default export is deprecated. Instead use `import { shallow } from 'zustand/shallow'`.",14- )15- }16- return shallow(objA, objB)17-}) as typeof shallow18-19-export { shallow }1+export { shallow } from './vanilla/shallow.ts'2+export { useShallow } from './react/shallow.ts'modified:src/traditional.ts+7 added-18 removed
1 unmodified line2 // import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector'3 // Those don't work in ESM, because React libs are CJS only.4 // See: https://github.com/pmndrs/valtio/issues/4525 // The following is a workaround until ESM is supported.6-// eslint-disable-next-line import/extensions6 import ReactExports from 'react'7 // eslint-disable-next-line import/extensions8 import useSyncExternalStoreExports from 'use-sync-external-store/shim/with-selector'9 import { createStore } from './vanilla.ts'13 unmodified lines23 StoreApi<T>,24 'getState' | 'getInitialState' | 'subscribe'25 >26 28-type WithReact<S extends ReadonlyStoreApi<unknown>> = S & {29- /** @deprecated please use api.getInitialState() */30- getServerState?: () => ExtractState<S>31-}32-27 const identity = <T>(arg: T): T => arg28 35-export function useStoreWithEqualityFn<36- S extends WithReact<ReadonlyStoreApi<unknown>>,37->(api: S): ExtractState<S>29+export function useStoreWithEqualityFn<S extends ReadonlyStoreApi<unknown>>(30+ api: S,31+): ExtractState<S>32 39-export function useStoreWithEqualityFn<40- S extends WithReact<ReadonlyStoreApi<unknown>>,41- U,42->(33+export function useStoreWithEqualityFn<S extends ReadonlyStoreApi<unknown>, U>(34 api: S,35 selector: (state: ExtractState<S>) => U,36 equalityFn?: (a: U, b: U) => boolean,37 ): U38 39 export function useStoreWithEqualityFn<TState, StateSlice>(49- api: WithReact<ReadonlyStoreApi<TState>>,40+ api: ReadonlyStoreApi<TState>,41 selector: (state: TState) => StateSlice = identity as any,42 equalityFn?: (a: StateSlice, b: StateSlice) => boolean,43 ) {44 const slice = useSyncExternalStoreWithSelector(45 api.subscribe,46 api.getState,56- api.getServerState || api.getInitialState,47+ api.getInitialState,48 selector,49 equalityFn,50 )51 useDebugValue(slice)52 return slice53 }54 64-export type UseBoundStoreWithEqualityFn<65- S extends WithReact<ReadonlyStoreApi<unknown>>,66-> = {55+export type UseBoundStoreWithEqualityFn<S extends ReadonlyStoreApi<unknown>> = {56 (): ExtractState<S>57 <U>(58 selector: (state: ExtractState<S>) => U,59 equalityFn?: (a: U, b: U) => boolean,37 unmodified linesmodified:src/vanilla.ts+3 added-90 removed
1 type SetStateInternal<T> = {2 _(3 partial: T | Partial<T> | { _(state: T): T | Partial<T> }['_'],4- replace?: boolean | undefined,4+ replace?: false,5 ): void6+ _(state: T | { _(state: T): T }['_'], replace: true): void7 }['_']8 9 export interface StoreApi<T> {10 setState: SetStateInternal<T>11 getState: () => T12 getInitialState: () => T13 subscribe: (listener: (state: T, prevState: T) => void) => () => void13- /**14- * @deprecated Use `unsubscribe` returned by `subscribe`15- */16- destroy: () => void14 }15 16 type Get<T, K, F> = K extends keyof T ? T[K] : F17 70 unmodified lines88 // Unsubscribe89 return () => listeners.delete(listener)90 }91 95- const destroy: StoreApi<TState>['destroy'] = () => {96- if (import.meta.env?.MODE !== 'production') {97- console.warn(98- '[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.',99- )100- }101- listeners.clear()102- }103-104- const api = { setState, getState, getInitialState, subscribe, destroy }92+ const api = { setState, getState, getInitialState, subscribe }93 const initialState = (state = createState(setState, getState, api))94 return api as any95 }96 97 export const createStore = ((createState) =>98 createState ? createStoreImpl(createState) : createStoreImpl) as CreateStore111-112-/**113- * @deprecated Use `import { createStore } from 'zustand/vanilla'`114- */115-export default ((createState) => {116- if (import.meta.env?.MODE !== 'production') {117- console.warn(118- "[DEPRECATED] Default export is deprecated. Instead use import { createStore } from 'zustand/vanilla'.",119- )120- }121- return createStore(createState)122-}) as CreateStore123-124-// ---------------------------------------------------------125-126-/**127- * @deprecated Use `unknown` instead of `State`128- */129-export type State = unknown130-131-/**132- * @deprecated Use `Partial<T> | ((s: T) => Partial<T>)` instead of `PartialState<T>`133- */134-export type PartialState<T extends State> =135- | Partial<T>136- | ((state: T) => Partial<T>)137-138-/**139- * @deprecated Use `(s: T) => U` instead of `StateSelector<T, U>`140- */141-export type StateSelector<T extends State, U> = (state: T) => U142-143-/**144- * @deprecated Use `(a: T, b: T) => boolean` instead of `EqualityChecker<T>`145- */146-export type EqualityChecker<T> = (state: T, newState: T) => boolean147-148-/**149- * @deprecated Use `(state: T, previousState: T) => void` instead of `StateListener<T>`150- */151-export type StateListener<T> = (state: T, previousState: T) => void152-153-/**154- * @deprecated Use `(slice: T, previousSlice: T) => void` instead of `StateSliceListener<T>`.155- */156-export type StateSliceListener<T> = (slice: T, previousSlice: T) => void157-158-/**159- * @deprecated Use `(listener: (state: T) => void) => void` instead of `Subscribe<T>`.160- */161-export type Subscribe<T extends State> = {162- (listener: (state: T, previousState: T) => void): () => void163-}164-165-/**166- * @deprecated You might be looking for `StateCreator`, if not then167- * use `StoreApi<T>['setState']` instead of `SetState<T>`.168- */169-export type SetState<T extends State> = {170- _(171- partial: T | Partial<T> | { _(state: T): T | Partial<T> }['_'],172- replace?: boolean | undefined,173- ): void174-}['_']175-176-/**177- * @deprecated You might be looking for `StateCreator`, if not then178- * use `StoreApi<T>['getState']` instead of `GetState<T>`.179- */180-export type GetState<T extends State> = () => T181-182-/**183- * @deprecated Use `StoreApi<T>['destroy']` instead of `Destroy`.184- */185-export type Destroy = () => voidmodified:tests/vanilla/basic.test.ts-16 removed
20 unmodified lines21 "params": [22 [Function],23 [Function],24 {25- "destroy": [Function],25 "getInitialState": [Function],26 "getState": [Function],27 "setState": [Function],28 "subscribe": [Function],29 },30 ],31 "result": {33- "destroy": [Function],32 "getInitialState": [Function],33 "getState": [Function],34 "setState": [Function],35 "subscribe": [Function],101 unmodified lines137 inc()138 139 expect(store.getState()).toBe(2)140 })143-144-it('can destroy the store', () => {145- const { destroy, getState, setState, subscribe } = createStore(() => ({146- value: 1,147- }))148-149- subscribe(() => {150- throw new Error('did not clear listener on destroy')151- })152- destroy()153-154- setState({ value: 2 })155- expect(getState().value).toEqual(2)156-})modified:tests/vanilla/shallow.test.tsx+6 added
89 unmodified lines90 expect(shallow(secondFnCompare, secondFnCompare)).toBe(true)91 92 expect(shallow(firstFnCompare, secondFnCompare)).toBe(false)93 })94+95+ it('compares URLSearchParams', () => {96+ const a = new URLSearchParams({ hello: 'world' })97+ const b = new URLSearchParams({ zustand: 'shallow' })98+ expect(shallow(a, b)).toBe(false)99+ })100 })101 102 describe('unsupported cases', () => {103 it('date', () => {8 unmodified linesmodified:tests/basic.test.tsx+53 added-13 removed
28 unmodified lines29 "params": [30 [Function],31 [Function],32 {33- "destroy": [Function],33 "getInitialState": [Function],34 "getState": [Function],35 "setState": [Function],36 "subscribe": [Function],434 unmodified lines471 setState({ b: 2 }, true)472 expect(getState()).toEqual({ b: 2 })473 })474 476-it('can destroy the store', () => {477- const { destroy, getState, setState, subscribe } = create(() => ({478- value: 1,479- }))475+it('only calls selectors when necessary with static selector', async () => {476+ type State = { a: number; b: number }477+ const useBoundStore = createWithEqualityFn<State>(() => ({ a: 0, b: 0 }))478+ const { setState } = useBoundStore479+ let staticSelectorCallCount = 0480 481- subscribe(() => {482- throw new Error('did not clear listener on destroy')483- })484- destroy()481+ function staticSelector(s: State) {482+ staticSelectorCallCount++483+ return s.a484+ }485 486- setState({ value: 2 })487- expect(getState().value).toEqual(2)486+ function Component() {487+ useBoundStore(staticSelector)488+ return (489+ <>490+ <div>static: {staticSelectorCallCount}</div>491+ </>492+ )493+ }494+495+ const { rerender, findByText } = render(496+ <>497+ <Component />498+ </>,499+ )500+ await findByText('static: 1')501+502+ rerender(503+ <>504+ <Component />505+ </>,506+ )507+ await findByText('static: 1')508+509+ act(() => setState({ a: 1, b: 1 }))510+ await findByText('static: 2')511 })512 490-it('only calls selectors when necessary', async () => {513+it('only calls selectors when necessary (traditional)', async () => {514 type State = { a: number; b: number }492- const useBoundStore = create<State>(() => ({ a: 0, b: 0 }))515+ const useBoundStore = createWithEqualityFn<State>(() => ({ a: 0, b: 0 }))516 const { setState } = useBoundStore517 let inlineSelectorCallCount = 0518 let staticSelectorCallCount = 0519 197 unmodified lines717 718 fireEvent.click(getByText('button'))719 await findByText('count: 2')720 })721+722+it('works with "undefined" state', async () => {723+ const useUndefined = create(() => undefined)724+725+ const Component = () => {726+ const str = useUndefined((v) => v || 'undefined')727+ return <div>str: {str}</div>728+ }729+730+ const { findByText } = render(731+ <StrictMode>732+ <Component />733+ </StrictMode>,734+ )735+736+ await findByText('str: undefined')737+})deleted:tests/context.test.tsx-174 removed
1-import {2- Component as ClassComponent,3- StrictMode,4- useCallback,5- useEffect,6- useState,7-} from 'react'8-import type { ReactNode } from 'react'9-import { render } from '@testing-library/react'10-import { afterEach, it, vi } from 'vitest'11-import { create } from 'zustand'12-import type { StoreApi } from 'zustand'13-import createContext from 'zustand/context'14-import { subscribeWithSelector } from 'zustand/middleware'15-16-const consoleError = console.error17-afterEach(() => {18- console.error = consoleError19-})20-21-type CounterState = {22- count: number23- inc: () => void24-}25-26-it('creates and uses context store', async () => {27- const { Provider, useStore } = createContext<StoreApi<CounterState>>()28-29- const createStore = () =>30- create<CounterState>((set) => ({31- count: 0,32- inc: () => set((state) => ({ count: state.count + 1 })),33- }))34-35- function Counter() {36- const { count, inc } = useStore()37- useEffect(inc, [inc])38- return <div>count: {count * 1}</div>39- }40-41- const { findByText } = render(42- <>43- <Provider createStore={createStore}>44- <Counter />45- </Provider>46- </>,47- )48-49- await findByText('count: 1')50-})51-52-it('uses context store with selectors', async () => {53- const { Provider, useStore } = createContext<StoreApi<CounterState>>()54-55- const createStore = () =>56- create<CounterState>((set) => ({57- count: 0,58- inc: () => set((state) => ({ count: state.count + 1 })),59- }))60-61- function Counter() {62- const count = useStore((state) => state.count)63- const inc = useStore((state) => state.inc)64- useEffect(inc, [inc])65- return <div>count: {count * 1}</div>66- }67-68- const { findByText } = render(69- <>70- <Provider createStore={createStore}>71- <Counter />72- </Provider>73- </>,74- )75-76- await findByText('count: 1')77-})78-79-it('uses context store api', async () => {80- const createStore = () =>81- create<CounterState>()(82- subscribeWithSelector((set) => ({83- count: 0,84- inc: () => set((state) => ({ count: state.count + 1 })),85- })),86- )87-88- type CustomStore = ReturnType<typeof createStore>89- const { Provider, useStoreApi } = createContext<CustomStore>()90-91- function Counter() {92- const storeApi = useStoreApi()93- const [count, setCount] = useState(0)94- useEffect(95- () =>96- storeApi.subscribe(97- (state) => state.count,98- () => setCount(storeApi.getState().count),99- ),100- [storeApi],101- )102- useEffect(() => {103- storeApi.setState({ count: storeApi.getState().count + 1 })104- }, [storeApi])105- useEffect(() => {106- if (count === 1) {107- storeApi.destroy()108- storeApi.setState({ count: storeApi.getState().count + 1 })109- }110- }, [storeApi, count])111- return <div>count: {count * 1}</div>112- }113-114- const { findByText } = render(115- <>116- <Provider createStore={createStore}>117- <Counter />118- </Provider>119- </>,120- )121-122- await findByText('count: 1')123-})124-125-it('throws error when not using provider', async () => {126- console.error = vi.fn()127-128- class ErrorBoundary extends ClassComponent<129- { children?: ReactNode | undefined },130- { hasError: boolean }131- > {132- constructor(props: { children?: ReactNode | undefined }) {133- super(props)134- this.state = { hasError: false }135- }136- static getDerivedStateFromError() {137- return { hasError: true }138- }139- render() {140- return this.state.hasError ? <div>errored</div> : this.props.children141- }142- }143-144- const { useStore } = createContext<StoreApi<CounterState>>()145- function Component() {146- useStore()147- return <div>no error</div>148- }149-150- const { findByText } = render(151- <StrictMode>152- <ErrorBoundary>153- <Component />154- </ErrorBoundary>155- </StrictMode>,156- )157- await findByText('errored')158-})159-160-it('useCallback with useStore infers types correctly', async () => {161- const { useStore } = createContext<StoreApi<CounterState>>()162- function _Counter() {163- const _x = useStore(useCallback((state) => state.count, []))164- expectAreTypesEqual<typeof _x, number>().toBe(true)165- }166-})167-168-const expectAreTypesEqual = <A, B>() => ({169- toBe: (170- _: (<T>() => T extends B ? 1 : 0) extends <T>() => T extends A ? 1 : 0171- ? true172- : false,173- ) => {},174-})modified:tests/devtools.test.tsx+14 added-38 removed
1 import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'2+import type { Mock } from 'vitest'3 import { devtools, redux } from 'zustand/middleware'4 import { createStore } from 'zustand/vanilla'5 import type { StoreApi } from 'zustand/vanilla'6 10 unmodified lines17 18 type Connection = {19 subscribers: ((message: unknown) => void)[]20 api: {20- subscribe: any21- unsubscribe: any22- send: any23- init: any24- error: any25- dispatch?: any21+ subscribe: Mock<any>22+ unsubscribe: Mock<any>23+ send: Mock<any>24+ init: Mock<any>25+ error: Mock<any>26+ dispatch?: Mock<any>27 }28 }29 const namedConnections = new Map<string | undefined, Connection>()30 const unnamedConnections = new Map<string, Connection>()119 unmodified lines150 createStore(devtools(() => ({ count: 0 })))151 }).not.toThrow()152 })153 153- it('does not warn if not enabled', async () => {154+ it('does not warn', async () => {155 createStore(devtools(() => ({ count: 0 })))156 expect(console.warn).not.toBeCalled()157 })157-158- it('[DEV-ONLY] warns if enabled in dev mode', async () => {159- createStore(devtools(() => ({ count: 0 }), { enabled: true }))160- expect(console.warn).toBeCalled()161- })162-163- it.skip('[PRD-ONLY] does not warn if not in dev env', async () => {164- createStore(devtools(() => ({ count: 0 })))165- expect(console.warn).not.toBeCalled()166- })167-168- it.skip('[PRD-ONLY] does not warn if not in dev env even if enabled', async () => {169- createStore(devtools(() => ({ count: 0 }), { enabled: true }))170- expect(console.warn).not.toBeCalled()171- })158 })159 160 describe('When state changes...', () => {161 it("sends { type: setStateName || 'anonymous`, ...rest } as the action with current state", async () => {513 unmodified lines675 676 /* features:677 * [] if name is undefined - use multiple devtools connections.678 * [] if name and store is defined - use connection for specific 'name'.693- * [] if two stores are coonected to one 'name' group and.679+ * [] if two stores are connected to one 'name' group and.680 * another connected to another 'name' group, then feature should work681 * [] check actions with this feature, for multiple stores that store prefixes are added -682 * [] - reset683 * [] - commit33 unmodified lines717 expect(conn2.init).toHaveBeenCalledWith(initialState2)718 })719 720 describe('when `store` property was provided in `devtools` call in options', () => {735- // FIXME: Run this test separately in CI, until we're able to test modules in isolation i.e. use jest.resetModule and re-import modules in each test736- // Relevant issues https://github.com/nodejs/node/issues/35889737- it('[CI-MATRIX-1] should create single connection for all indernal calls of .connect and `store` is not passed to .connect', async () => {721+ it('should create single connection for all internal calls of .connect and `store` is not passed to .connect', async () => {722 const { devtools: newDevtools } = await import('zustand/middleware')723 724 const options1 = { store: 'store1123', foo: 'bar1' }725 const options2 = { store: 'store2313132', foo: 'bar2' }12 unmodified lines738 foo: options1.foo,739 })740 })741 758- // FIXME: Run this test separately in CI, until we're able to test modules in isolation i.e. use jest.resetModule and re-import modules in each test759- // Relevant issues https://github.com/nodejs/node/issues/35889760- it('[CI-MATRIX-2] should call `.init` on single connection with combined states after each `create(devtools` call', async () => {742+ it('should call `.init` on single connection with combined states after each `create(devtools` call', async () => {743 const { devtools: newDevtools } = await import('zustand/middleware')744 745 const options1 = { store: 'store12' }746 const options2 = { store: 'store21' }85 unmodified lines832 name: connectionNameGroup2,833 })834 })835 854- // FIXME: Run this test separately in CI, until we're able to test modules in isolation i.e. use jest.resetModule and re-import modules in each test855- // Relevant issues https://github.com/nodejs/node/issues/35889856- it('[CI-MATRIX-3] should call `.init` on single connection with combined states after each `create(devtools` call', async () => {836+ it('should call `.init` on single connection with combined states after each `create(devtools` call', async () => {837 const { devtools: newDevtools } = await import('zustand/middleware')838 const connectionNameGroup1 = 'test1'839 const connectionNameGroup2 = 'test2'840 const options1 = {1502 unmodified lines2343 2344 console.error = originalConsoleError2345 })2346 2367- // FIXME: Run this test separately in CI, until we're able to test modules in isolation i.e. use jest.resetModule and re-import modules in each test2368- // Relevant issues https://github.com/nodejs/node/issues/358892369- it('[CI-MATRIX-4] does nothing even if there is `api.dispatch`, connections isolated from each other', async () => {2347+ it('does nothing even if there is `api.dispatch`, connections isolated from each other', async () => {2348 const { devtools: newDevtools } = await import('zustand/middleware')2349 2350 const name1 = 'name1'2351 const name2 = 'name2'39 unmodified lines2391 expect((api1 as any).dispatch).not.toBeCalled()2392 expect((api2 as any).dispatch).not.toBeCalled()2393 })2394 2417- // FIXME: Run this test separately in CI, until we're able to test modules in isolation i.e. use jest.resetModule and re-import modules in each test2418- // Relevant issues https://github.com/nodejs/node/issues/358892419- it('[CI-MATRIX-5] dispatches with `api.dispatch` when `api.dispatchFromDevtools` is set to true, connections are isolated from each other', async () => {2395+ it('dispatches with `api.dispatch` when `api.dispatchFromDevtools` is set to true, connections are isolated from each other', async () => {2396 const { devtools: newDevtools } = await import('zustand/middleware')2397 const name1 = 'name1'2398 const name2 = 'name2'2399 const store1 = 'someStore1'51 unmodified linesmodified:tests/ssr.test.tsx+11 added-7 removed
17 unmodified lines18 increasePopulation: () => set(({ bears }) => ({ bears: bears + 1 })),19 }))20 21 function Counter() {22- const { bears, increasePopulation } = useBearStore(23- ({ bears, increasePopulation }) => ({24- bears,25- increasePopulation,26- }),22+ const bears = useBearStore(({ bears }) => bears)23+ const increasePopulation = useBearStore(24+ ({ increasePopulation }) => increasePopulation,25 )26 27 useEffect(() => {28 increasePopulation()5 unmodified lines34 describe.skipIf(!React.version.startsWith('18'))(35 'ssr behavior with react 18',36 () => {37 it('should handle different states between server and client correctly', async () => {40- const { hydrateRoot }: any = await vi.importActual('react-dom/client')38+ const { hydrateRoot } =39+ await vi.importActual<typeof import('react-dom/client')>(40+ 'react-dom/client',41+ )42 43 const markup = renderToString(44 <React.Suspense fallback={<div>Loading...</div>}>45 <Counter />23 unmodified lines69 const useStore = create(() => ({70 bears: 0,71 }))72 72- const { hydrateRoot }: any = await vi.importActual('react-dom/client')73+ const { hydrateRoot } =74+ await vi.importActual<typeof import('react-dom/client')>(75+ 'react-dom/client',76+ )77 78 const Component = () => {79 const bears = useStore((state) => state.bears)80 return <div>bears: {bears}</div>38 unmodified linesmodified:tests/types.test.tsx+4 added-6 removed
77 unmodified lines78 _stateListener: (state: ExampleState, previousState: ExampleState) => void,79 _stateSelector: (state: ExampleState) => number,80 _storeApi: StoreApi<ExampleState>,81 _subscribe: StoreApi<ExampleState>['subscribe'],82- _destroy: StoreApi<ExampleState>['destroy'],82 _equalityFn: (a: ExampleState, b: ExampleState) => boolean,83 _stateCreator: StateCreator<ExampleState>,84 _useBoundStore: UseBoundStore<StoreApi<ExampleState>>,85 ) {8 unmodified lines94 listener,95 selector,96 storeApi,97 storeApi.subscribe,99- storeApi.destroy,98 equalityFn,99 stateCreator,100 useBoundStore,101 )9 unmodified lines111 type Count = { count: number }112 113 const store = create<Count>((set) => ({114 count: 0,117- // @ts-expect-error we shouldn't be able to set count to undefined [LATEST-TS-ONLY]115+ // @ts-expect-error we shouldn't be able to set count to undefined116 a: () => set(() => ({ count: undefined })),119- // @ts-expect-error we shouldn't be able to set count to undefined [LATEST-TS-ONLY]117+ // @ts-expect-error we shouldn't be able to set count to undefined118 b: () => set({ count: undefined }),119 c: () => set({ count: 1 }),120 }))121 7 unmodified lines129 store.setState({ count: 1 })130 store.setState({})131 store.setState((previous) => previous)132 135- // @ts-expect-error type undefined is not assignable to type number [LATEST-TS-ONLY]133+ // @ts-expect-error type undefined is not assignable to type number134 store.setState({ count: undefined })137- // @ts-expect-error type undefined is not assignable to type number [LATEST-TS-ONLY]135+ // @ts-expect-error type undefined is not assignable to type number136 store.setState((state) => ({ ...state, count: undefined }))137 })138 139 it('should allow for different partial keys to be returnable from setState', () => {109 unmodified linesmodified:.eslintrc.json+1 added-5 removed
43 unmodified lines44 "import/no-duplicates": ["error"],45 "@typescript-eslint/explicit-module-boundary-types": "off",46 "@typescript-eslint/no-unused-vars": [47 "warn",48- {49- "argsIgnorePattern": "^_",50- "varsIgnorePattern": "^_",51- "caughtErrorsIgnorePattern": "^_"52- }48+ { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }49 ],50 "@typescript-eslint/no-use-before-define": "off",51 "@typescript-eslint/no-empty-function": "off",52 "@typescript-eslint/no-explicit-any": "off",73 unmodified linesdeleted:babel.config.js-28 removed
1-module.exports = (api, targets) => {2- // https://babeljs.io/docs/en/config-files#config-function-api3- const isTestEnv = api.env('test')4-5- return {6- babelrc: false,7- ignore: ['./node_modules'],8- presets: [9- [10- '@babel/preset-env',11- {12- loose: true,13- modules: isTestEnv ? 'commonjs' : false,14- targets: isTestEnv ? { node: 'current' } : targets,15- },16- ],17- ],18- plugins: [19- [20- '@babel/plugin-transform-react-jsx',21- {22- runtime: 'automatic',23- },24- ],25- ['@babel/plugin-transform-typescript', { isTSX: true }],26- ],27- }28-}modified:package.json+37 added-137 removed
1 {2 "name": "zustand",3 "description": "🐻 Bear necessities for state management in React",4 "private": true,5- "version": "4.5.5",5+ "type": "commonjs",6+ "version": "5.0.0-beta.2",7+ "publishConfig": {8+ "tag": "next"9+ },10 "main": "./index.js",11 "types": "./index.d.ts",12 "typesVersions": {9- "<4.0": {13+ ">=4.5": {14 "esm/*": [11- "ts3.4/*"15+ "esm/*"16 ],17 "*": [14- "ts3.4/*"18+ "*"19 ]20+ },21+ "*": {22+ "esm/*": [23+ "ts_version_4.5_and_above_is_required.d.ts"24+ ],25+ "*": [26+ "ts_version_4.5_and_above_is_required.d.ts"27+ ]28 }29 },18- "files": [19- "**"20- ],30 "exports": {31 "./package.json": "./package.json",32 ".": {33 "import": {34 "types": "./esm/index.d.mts",35 "default": "./esm/index.mjs"36 },28- "module": {29- "types": "./esm/index.d.ts",30- "default": "./esm/index.js"31- },37 "default": {38 "types": "./index.d.ts",39 "default": "./index.js"40 }41 },37- "./vanilla": {42+ "./*": {43 "import": {39- "types": "./esm/vanilla.d.mts",40- "default": "./esm/vanilla.mjs"44+ "types": "./esm/*.d.mts",45+ "default": "./esm/*.mjs"46 },42- "module": {43- "types": "./esm/vanilla.d.ts",44- "default": "./esm/vanilla.js"45- },47 "default": {47- "types": "./vanilla.d.ts",48- "default": "./vanilla.js"48+ "types": "./*.d.ts",49+ "default": "./*.js"50 }50- },51- "./middleware": {52- "import": {53- "types": "./esm/middleware.d.mts",54- "default": "./esm/middleware.mjs"55- },56- "module": {57- "types": "./esm/middleware.d.ts",58- "default": "./esm/middleware.js"59- },60- "default": {61- "types": "./middleware.d.ts",62- "default": "./middleware.js"63- }64- },65- "./middleware/immer": {66- "import": {67- "types": "./esm/middleware/immer.d.mts",68- "default": "./esm/middleware/immer.mjs"69- },70- "module": {71- "types": "./esm/middleware/immer.d.ts",72- "default": "./esm/middleware/immer.js"73- },74- "default": {75- "types": "./middleware/immer.d.ts",76- "default": "./middleware/immer.js"77- }78- },79- "./shallow": {80- "import": {81- "types": "./esm/shallow.d.mts",82- "default": "./esm/shallow.mjs"83- },84- "module": {85- "types": "./esm/shallow.d.ts",86- "default": "./esm/shallow.js"87- },88- "default": {89- "types": "./shallow.d.ts",90- "default": "./shallow.js"91- }92- },93- "./vanilla/shallow": {94- "import": {95- "types": "./esm/vanilla/shallow.d.mts",96- "default": "./esm/vanilla/shallow.mjs"97- },98- "module": {99- "types": "./esm/vanilla/shallow.d.ts",100- "default": "./esm/vanilla/shallow.js"101- },102- "default": {103- "types": "./vanilla/shallow.d.ts",104- "default": "./vanilla/shallow.js"105- }106- },107- "./react/shallow": {108- "import": {109- "types": "./esm/react/shallow.d.mts",110- "default": "./esm/react/shallow.mjs"111- },112- "module": {113- "types": "./esm/react/shallow.d.ts",114- "default": "./esm/react/shallow.js"115- },116- "default": {117- "types": "./react/shallow.d.ts",118- "default": "./react/shallow.js"119- }120- },121- "./traditional": {122- "import": {123- "types": "./esm/traditional.d.mts",124- "default": "./esm/traditional.mjs"125- },126- "module": {127- "types": "./esm/traditional.d.ts",128- "default": "./esm/traditional.js"129- },130- "default": {131- "types": "./traditional.d.ts",132- "default": "./traditional.js"133- }134- },135- "./context": {136- "import": {137- "types": "./esm/context.d.mts",138- "default": "./esm/context.mjs"139- },140- "module": {141- "types": "./esm/context.d.ts",142- "default": "./esm/context.js"143- },144- "default": {145- "types": "./context.d.ts",146- "default": "./context.js"147- }51 }52 },53+ "files": [54+ "**"55+ ],56 "sideEffects": false,57 "scripts": {58 "prebuild": "shx rm -rf dist",59 "build": "pnpm run prebuild && pnpm run '/^build:.*/' && pnpm run postbuild",60 "build:base": "rollup -c",61 "build:vanilla": "rollup -c --config-vanilla",62+ "build:react": "rollup -c --config-react",63 "build:middleware": "rollup -c --config-middleware",64 "build:middleware:immer": "rollup -c --config-middleware_immer",65 "build:shallow": "rollup -c --config-shallow",66 "build:vanilla:shallow": "rollup -c --config-vanilla_shallow",67 "build:react:shallow": "rollup -c --config-react_shallow",68 "build:traditional": "rollup -c --config-traditional",162- "build:context": "rollup -c --config-context",163- "postbuild": "pnpm patch-d-ts && pnpm copy && pnpm patch-esm-ts",69+ "postbuild": "pnpm patch-d-ts && pnpm copy && pnpm patch-old-ts && pnpm patch-esm-ts",70 "prettier": "prettier \"*.{js,json,md}\" \"{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}\" --write",71 "eslint": "eslint --no-eslintrc --c .eslintrc.json --fix '*.{js,ts}' '{src,tests}/**/*.{ts,tsx}'",72 "test": "pnpm run '/^test:.*/'",73 "test:format": "prettier '*.{js,json,md}' '{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}' --list-different",74 "test:types": "tsc --noEmit",75 "test:lint": "eslint --no-eslintrc --c .eslintrc.json '*.{js,ts}' '{src,tests}/**/*.{ts,tsx}'",76 "test:spec": "vitest run",77 "patch-d-ts": "node -e \"var {entries}=require('./rollup.config.js');require('shelljs').find('dist/**/*.d.ts').forEach(f=>{entries.forEach(({find,replacement})=>require('shelljs').sed('-i',new RegExp(' from \\''+find.source.slice(0,-1)+'\\';$'),' from \\''+replacement+'\\';',f));require('shelljs').sed('-i',/ from '(\\.[^']+)\\.ts';$/,' from \\'\\$1\\';',f)})\"",172- "copy": "shx cp -r dist/src/* dist/esm && shx cp -r dist/src/* dist && shx rm -rf dist/src && shx rm -rf dist/{src,tests} && downlevel-dts dist dist/ts3.4 && shx cp package.json readme.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.prettier=undefined;\"",173- "patch-esm-ts": "node -e \"require('shelljs').find('dist/esm/**/*.d.ts').forEach(f=>{var f2=f.replace(/\\.ts$/,'.mts');require('fs').copyFileSync(f,f2);require('shelljs').sed('-i',/ from '(\\.[^']+)';$/,' from \\'\\$1.mjs\\';',f2);require('shelljs').sed('-i',/^declare module '(\\.[^']+)'/,'declare module \\'\\$1.mjs\\'',f2)})\""78+ "copy": "shx cp -r dist/src/* dist/esm && shx cp -r dist/src/* dist && shx rm -rf dist/src && shx rm -rf dist/{src,tests} && shx cp package.json readme.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.prettier=undefined;\"",79+ "patch-old-ts": "shx touch dist/ts_version_4.5_and_above_is_required.d.ts",80+ "patch-esm-ts": "node -e \"require('shelljs').find('dist/esm/**/*.d.ts').forEach(f=>{var f2=f.replace(/\\.ts$/,'.mts');require('fs').renameSync(f,f2);require('shelljs').sed('-i',/ from '(\\.[^']+)';$/,' from \\'\\$1.mjs\\';',f2);require('shelljs').sed('-i',/^declare module '(\\.[^']+)'/,'declare module \\'\\$1.mjs\\'',f2)})\""81 },82 "engines": {176- "node": ">=12.7.0"83+ "node": ">=12.20.0"84 },85 "prettier": {86 "semi": false,87 "singleQuote": true20 unmodified lines108 "url": "https://github.com/pmndrs/zustand/issues"109 },110 "homepage": "https://github.com/pmndrs/zustand",111 "packageManager": "pnpm@8.15.0",205- "dependencies": {206- "use-sync-external-store": "1.2.2"207- },112 "devDependencies": {209- "@babel/core": "^7.25.2",210- "@babel/plugin-external-helpers": "^7.24.7",211- "@babel/plugin-transform-react-jsx": "^7.25.2",212- "@babel/plugin-transform-runtime": "^7.24.7",213- "@babel/plugin-transform-typescript": "^7.25.2",214- "@babel/preset-env": "^7.25.3",113 "@redux-devtools/extension": "^3.3.0",114 "@rollup/plugin-alias": "^5.1.0",217- "@rollup/plugin-babel": "^6.0.4",115 "@rollup/plugin-node-resolve": "^15.2.3",116 "@rollup/plugin-replace": "^5.0.7",220- "@rollup/plugin-terser": "^0.4.4",117 "@rollup/plugin-typescript": "^11.1.6",118 "@testing-library/react": "^16.0.0",119 "@types/node": "^22.3.0",120 "@types/react": "^18.3.3",2 unmodified lines123 "@typescript-eslint/eslint-plugin": "^8.1.0",124 "@typescript-eslint/parser": "^8.1.0",125 "@vitest/coverage-v8": "^2.0.5",126 "@vitest/ui": "^2.0.5",231- "downlevel-dts": "^0.11.0",127 "esbuild": "^0.23.0",128 "eslint": "8.57.0",129 "eslint-config-prettier": "^9.1.0",130 "eslint-import-resolver-alias": "^1.1.2",14 unmodified lines145 "rollup-plugin-esbuild": "^6.1.1",146 "shelljs": "^0.8.5",147 "shx": "^0.3.4",148 "typescript": "^5.5.4",149+ "use-sync-external-store": "^1.2.2",150 "vitest": "^2.0.5"151 },152 "peerDependencies": {257- "@types/react": ">=16.8",153+ "@types/react": ">=18.0.0",154 "immer": ">=9.0.6",259- "react": ">=16.8"155+ "react": ">=18.0.0",156+ "use-sync-external-store": ">=1.2.0"157 },158 "peerDependenciesMeta": {159 "@types/react": {160 "optional": true2 unmodified lines163 "optional": true164 },165 "react": {166 "optional": true167+ },168+ "use-sync-external-store": {169+ "optional": true170 }171 }172 }modified:pnpm-lock.yaml+19 added-1339 removed
2 unmodified lines3 settings:4 autoInstallPeers: true5 excludeLinksFromLockfile: false6 7-dependencies:8- use-sync-external-store:9- specifier: 1.2.210- version: 1.2.2(react@19.0.0-rc.0)11-7 devDependencies:13- '@babel/core':14- specifier: ^7.25.215- version: 7.25.216- '@babel/plugin-external-helpers':17- specifier: ^7.24.718- version: 7.24.7(@babel/core@7.25.2)19- '@babel/plugin-transform-react-jsx':20- specifier: ^7.25.221- version: 7.25.2(@babel/core@7.25.2)22- '@babel/plugin-transform-runtime':23- specifier: ^7.24.724- version: 7.24.7(@babel/core@7.25.2)25- '@babel/plugin-transform-typescript':26- specifier: ^7.25.227- version: 7.25.2(@babel/core@7.25.2)28- '@babel/preset-env':29- specifier: ^7.25.330- version: 7.25.3(@babel/core@7.25.2)8 '@redux-devtools/extension':9 specifier: ^3.3.010 version: 3.3.0(redux@5.0.1)11 '@rollup/plugin-alias':12 specifier: ^5.1.013 version: 5.1.0(rollup@4.20.0)37- '@rollup/plugin-babel':38- specifier: ^6.0.439- version: 6.0.4(@babel/core@7.25.2)(rollup@4.20.0)14 '@rollup/plugin-node-resolve':15 specifier: ^15.2.316 version: 15.2.3(rollup@4.20.0)17 '@rollup/plugin-replace':18 specifier: ^5.0.719 version: 5.0.7(rollup@4.20.0)46- '@rollup/plugin-terser':47- specifier: ^0.4.448- version: 0.4.4(rollup@4.20.0)20 '@rollup/plugin-typescript':21 specifier: ^11.1.622 version: 11.1.6(rollup@4.20.0)(typescript@5.5.4)23 '@testing-library/react':22 unmodified lines46 version: 2.0.5(vitest@2.0.5)47 '@vitest/ui':48 specifier: ^2.0.549 version: 2.0.5(vitest@2.0.5)79- downlevel-dts:80- specifier: ^0.11.081- version: 0.11.050 esbuild:51 specifier: ^0.23.052 version: 0.23.053 eslint:58 unmodified lines112 version: 0.3.4113 typescript:114 specifier: ^5.5.4115 version: 5.5.4116+ use-sync-external-store:117+ specifier: ^1.2.2118+ version: 1.2.2(react@19.0.0-rc.0)119 vitest:120 specifier: ^2.0.5121 version: 2.0.5(@types/node@22.3.0)(@vitest/ui@2.0.5)(jsdom@24.1.1)122 59 unmodified lines182 dependencies:183 '@babel/types': 7.25.2184 dev: true185 215- /@babel/helper-builder-binary-assignment-operator-visitor@7.24.7:216- resolution: {integrity: sha512-xZeCVVdwb4MsDBkkyZ64tReWYrLRHlMN72vP7Bdm3OUOuyFZExhsHUUnuWnm2/XOlAJzR0LfPpB56WXZn0X/lA==}217- engines: {node: '>=6.9.0'}218- dependencies:219- '@babel/traverse': 7.25.3220- '@babel/types': 7.25.2221- transitivePeerDependencies:222- - supports-color223- dev: true224-186 /@babel/helper-compilation-targets@7.25.2:187 resolution: {integrity: sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==}188 engines: {node: '>=6.9.0'}189 dependencies:21 unmodified lines211 transitivePeerDependencies:212 - supports-color213 dev: true214 254- /@babel/helper-create-regexp-features-plugin@7.25.2(@babel/core@7.25.2):255- resolution: {integrity: sha512-+wqVGP+DFmqwFD3EH6TMTfUNeqDehV3E/dl+Sd54eaXqm17tEUNbEIn4sVivVowbvUpOtIGxdo3GoXyDH9N/9g==}256- engines: {node: '>=6.9.0'}257- peerDependencies:258- '@babel/core': ^7.0.0259- dependencies:260- '@babel/core': 7.25.2261- '@babel/helper-annotate-as-pure': 7.24.7262- regexpu-core: 5.3.2263- semver: 6.3.1264- dev: true265-266- /@babel/helper-define-polyfill-provider@0.6.2(@babel/core@7.25.2):267- resolution: {integrity: sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ==}268- peerDependencies:269- '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0270- dependencies:271- '@babel/core': 7.25.2272- '@babel/helper-compilation-targets': 7.25.2273- '@babel/helper-plugin-utils': 7.24.8274- debug: 4.3.6275- lodash.debounce: 4.0.8276- resolve: 1.22.8277- transitivePeerDependencies:278- - supports-color279- dev: true280-215 /@babel/helper-member-expression-to-functions@7.24.8:216 resolution: {integrity: sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA==}217 engines: {node: '>=6.9.0'}218 dependencies:39 unmodified lines258 resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==}259 engines: {node: '>=6.9.0'}260 dev: true261 328- /@babel/helper-remap-async-to-generator@7.25.0(@babel/core@7.25.2):329- resolution: {integrity: sha512-NhavI2eWEIz/H9dbrG0TuOicDhNexze43i5z7lEqwYm0WEZVTwnPpA0EafUTP7+6/W79HWIP2cTe3Z5NiSTVpw==}330- engines: {node: '>=6.9.0'}331- peerDependencies:332- '@babel/core': ^7.0.0333- dependencies:334- '@babel/core': 7.25.2335- '@babel/helper-annotate-as-pure': 7.24.7336- '@babel/helper-wrap-function': 7.25.0337- '@babel/traverse': 7.25.3338- transitivePeerDependencies:339- - supports-color340- dev: true341-262 /@babel/helper-replace-supers@7.25.0(@babel/core@7.25.2):263 resolution: {integrity: sha512-q688zIvQVYtZu+i2PsdIu/uWGRpfxzr5WESsfpShfZECkO+d2o+WROWezCi/Q6kJ0tfPa5+pUGUlfx2HhrA3Bg==}264 engines: {node: '>=6.9.0'}265 peerDependencies:41 unmodified lines307 resolution: {integrity: sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==}308 engines: {node: '>=6.9.0'}309 dev: true310 391- /@babel/helper-wrap-function@7.25.0:392- resolution: {integrity: sha512-s6Q1ebqutSiZnEjaofc/UKDyC4SbzV5n5SrA2Gq8UawLycr3i04f1dX4OzoQVnexm6aOCh37SQNYlJ/8Ku+PMQ==}393- engines: {node: '>=6.9.0'}394- dependencies:395- '@babel/template': 7.25.0396- '@babel/traverse': 7.25.3397- '@babel/types': 7.25.2398- transitivePeerDependencies:399- - supports-color400- dev: true401-311 /@babel/helpers@7.25.0:312 resolution: {integrity: sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw==}313 engines: {node: '>=6.9.0'}314 dependencies:18 unmodified lines333 dependencies:334 '@babel/types': 7.25.2335 dev: true336 428- /@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.25.3(@babel/core@7.25.2):429- resolution: {integrity: sha512-wUrcsxZg6rqBXG05HG1FPYgsP6EvwF4WpBbxIpWIIYnH8wG0gzx3yZY3dtEHas4sTAOGkbTsc9EGPxwff8lRoA==}430- engines: {node: '>=6.9.0'}431- peerDependencies:432- '@babel/core': ^7.0.0433- dependencies:434- '@babel/core': 7.25.2435- '@babel/helper-plugin-utils': 7.24.8436- '@babel/traverse': 7.25.3437- transitivePeerDependencies:438- - supports-color439- dev: true440-441- /@babel/plugin-bugfix-safari-class-field-initializer-scope@7.25.0(@babel/core@7.25.2):442- resolution: {integrity: sha512-Bm4bH2qsX880b/3ziJ8KD711LT7z4u8CFudmjqle65AZj/HNUFhEf90dqYv6O86buWvSBmeQDjv0Tn2aF/bIBA==}443- engines: {node: '>=6.9.0'}444- peerDependencies:445- '@babel/core': ^7.0.0446- dependencies:447- '@babel/core': 7.25.2448- '@babel/helper-plugin-utils': 7.24.8449- dev: true450-451- /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.25.0(@babel/core@7.25.2):452- resolution: {integrity: sha512-lXwdNZtTmeVOOFtwM/WDe7yg1PL8sYhRk/XH0FzbR2HDQ0xC+EnQ/JHeoMYSavtU115tnUk0q9CDyq8si+LMAA==}453- engines: {node: '>=6.9.0'}454- peerDependencies:455- '@babel/core': ^7.0.0456- dependencies:457- '@babel/core': 7.25.2458- '@babel/helper-plugin-utils': 7.24.8459- dev: true460-461- /@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.24.7(@babel/core@7.25.2):462- resolution: {integrity: sha512-+izXIbke1T33mY4MSNnrqhPXDz01WYhEf3yF5NbnUtkiNnm+XBZJl3kNfoK6NKmYlz/D07+l2GWVK/QfDkNCuQ==}463- engines: {node: '>=6.9.0'}464- peerDependencies:465- '@babel/core': ^7.13.0466- dependencies:467- '@babel/core': 7.25.2468- '@babel/helper-plugin-utils': 7.24.8469- '@babel/helper-skip-transparent-expression-wrappers': 7.24.7470- '@babel/plugin-transform-optional-chaining': 7.24.8(@babel/core@7.25.2)471- transitivePeerDependencies:472- - supports-color473- dev: true474-475- /@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.25.0(@babel/core@7.25.2):476- resolution: {integrity: sha512-tggFrk1AIShG/RUQbEwt2Tr/E+ObkfwrPjR6BjbRvsx24+PSjK8zrq0GWPNCjo8qpRx4DuJzlcvWJqlm+0h3kw==}477- engines: {node: '>=6.9.0'}478- peerDependencies:479- '@babel/core': ^7.0.0480- dependencies:481- '@babel/core': 7.25.2482- '@babel/helper-plugin-utils': 7.24.8483- '@babel/traverse': 7.25.3484- transitivePeerDependencies:485- - supports-color486- dev: true487-488- /@babel/plugin-external-helpers@7.24.7(@babel/core@7.25.2):489- resolution: {integrity: sha512-IgK2yjWkxQhtc+UvSbUA8GfIDCQvs7FxqNtgLkmO5FAKos53sT2sl9bxeO4NxjcnZs27xnYIMyhjdXkNaZP4jA==}490- engines: {node: '>=6.9.0'}491- peerDependencies:492- '@babel/core': ^7.0.0-0493- dependencies:494- '@babel/core': 7.25.2495- '@babel/helper-plugin-utils': 7.24.8496- dev: true497-337 /@babel/plugin-proposal-private-methods@7.18.6(@babel/core@7.25.2):338 resolution: {integrity: sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==}339 engines: {node: '>=6.9.0'}340 deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.6 unmodified lines347 transitivePeerDependencies:348 - supports-color349 dev: true350 512- /@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.25.2):513- resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==}514- engines: {node: '>=6.9.0'}515- peerDependencies:516- '@babel/core': ^7.0.0-0517- dependencies:518- '@babel/core': 7.25.2519- dev: true520-521- /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.25.2):522- resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==}523- peerDependencies:524- '@babel/core': ^7.0.0-0525- dependencies:526- '@babel/core': 7.25.2527- '@babel/helper-plugin-utils': 7.24.8528- dev: true529-530- /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.25.2):531- resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==}532- peerDependencies:533- '@babel/core': ^7.0.0-0534- dependencies:535- '@babel/core': 7.25.2536- '@babel/helper-plugin-utils': 7.24.8537- dev: true538-539- /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.25.2):540- resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==}541- engines: {node: '>=6.9.0'}542- peerDependencies:543- '@babel/core': ^7.0.0-0544- dependencies:545- '@babel/core': 7.25.2546- '@babel/helper-plugin-utils': 7.24.8547- dev: true548-549- /@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.25.2):550- resolution: {integrity: sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==}551- peerDependencies:552- '@babel/core': ^7.0.0-0553- dependencies:554- '@babel/core': 7.25.2555- '@babel/helper-plugin-utils': 7.24.8556- dev: true557-558- /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.25.2):559- resolution: {integrity: sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==}560- peerDependencies:561- '@babel/core': ^7.0.0-0562- dependencies:563- '@babel/core': 7.25.2564- '@babel/helper-plugin-utils': 7.24.8565- dev: true566-567- /@babel/plugin-syntax-import-assertions@7.24.7(@babel/core@7.25.2):568- resolution: {integrity: sha512-Ec3NRUMoi8gskrkBe3fNmEQfxDvY8bgfQpz6jlk/41kX9eUjvpyqWU7PBP/pLAvMaSQjbMNKJmvX57jP+M6bPg==}569- engines: {node: '>=6.9.0'}570- peerDependencies:571- '@babel/core': ^7.0.0-0572- dependencies:573- '@babel/core': 7.25.2574- '@babel/helper-plugin-utils': 7.24.8575- dev: true576-577- /@babel/plugin-syntax-import-attributes@7.24.7(@babel/core@7.25.2):578- resolution: {integrity: sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A==}579- engines: {node: '>=6.9.0'}580- peerDependencies:581- '@babel/core': ^7.0.0-0582- dependencies:583- '@babel/core': 7.25.2584- '@babel/helper-plugin-utils': 7.24.8585- dev: true586-587- /@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.25.2):588- resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==}589- peerDependencies:590- '@babel/core': ^7.0.0-0591- dependencies:592- '@babel/core': 7.25.2593- '@babel/helper-plugin-utils': 7.24.8594- dev: true595-596- /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.25.2):597- resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==}598- peerDependencies:599- '@babel/core': ^7.0.0-0600- dependencies:601- '@babel/core': 7.25.2602- '@babel/helper-plugin-utils': 7.24.8603- dev: true604-605- /@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.25.2):606- resolution: {integrity: sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==}607- engines: {node: '>=6.9.0'}608- peerDependencies:609- '@babel/core': ^7.0.0-0610- dependencies:611- '@babel/core': 7.25.2612- '@babel/helper-plugin-utils': 7.24.8613- dev: true614-615- /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.25.2):616- resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==}617- peerDependencies:618- '@babel/core': ^7.0.0-0619- dependencies:620- '@babel/core': 7.25.2621- '@babel/helper-plugin-utils': 7.24.8622- dev: true623-624- /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.25.2):625- resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==}626- peerDependencies:627- '@babel/core': ^7.0.0-0628- dependencies:629- '@babel/core': 7.25.2630- '@babel/helper-plugin-utils': 7.24.8631- dev: true632-633- /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.25.2):634- resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==}635- peerDependencies:636- '@babel/core': ^7.0.0-0637- dependencies:638- '@babel/core': 7.25.2639- '@babel/helper-plugin-utils': 7.24.8640- dev: true641-642- /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.25.2):643- resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==}644- peerDependencies:645- '@babel/core': ^7.0.0-0646- dependencies:647- '@babel/core': 7.25.2648- '@babel/helper-plugin-utils': 7.24.8649- dev: true650-651- /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.25.2):652- resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==}653- peerDependencies:654- '@babel/core': ^7.0.0-0655- dependencies:656- '@babel/core': 7.25.2657- '@babel/helper-plugin-utils': 7.24.8658- dev: true659-660- /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.25.2):661- resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==}662- peerDependencies:663- '@babel/core': ^7.0.0-0664- dependencies:665- '@babel/core': 7.25.2666- '@babel/helper-plugin-utils': 7.24.8667- dev: true668-669- /@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.25.2):670- resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==}671- engines: {node: '>=6.9.0'}672- peerDependencies:673- '@babel/core': ^7.0.0-0674- dependencies:675- '@babel/core': 7.25.2676- '@babel/helper-plugin-utils': 7.24.8677- dev: true678-679- /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.25.2):680- resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==}681- engines: {node: '>=6.9.0'}682- peerDependencies:683- '@babel/core': ^7.0.0-0684- dependencies:685- '@babel/core': 7.25.2686- '@babel/helper-plugin-utils': 7.24.8687- dev: true688-689- /@babel/plugin-syntax-typescript@7.24.7(@babel/core@7.25.2):690- resolution: {integrity: sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA==}691- engines: {node: '>=6.9.0'}692- peerDependencies:693- '@babel/core': ^7.0.0-0694- dependencies:695- '@babel/core': 7.25.2696- '@babel/helper-plugin-utils': 7.24.8697- dev: true698-699- /@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.25.2):700- resolution: {integrity: sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==}701- engines: {node: '>=6.9.0'}702- peerDependencies:703- '@babel/core': ^7.0.0704- dependencies:705- '@babel/core': 7.25.2706- '@babel/helper-create-regexp-features-plugin': 7.25.2(@babel/core@7.25.2)707- '@babel/helper-plugin-utils': 7.24.8708- dev: true709-710- /@babel/plugin-transform-arrow-functions@7.24.7(@babel/core@7.25.2):711- resolution: {integrity: sha512-Dt9LQs6iEY++gXUwY03DNFat5C2NbO48jj+j/bSAz6b3HgPs39qcPiYt77fDObIcFwj3/C2ICX9YMwGflUoSHQ==}712- engines: {node: '>=6.9.0'}713- peerDependencies:714- '@babel/core': ^7.0.0-0715- dependencies:716- '@babel/core': 7.25.2717- '@babel/helper-plugin-utils': 7.24.8718- dev: true719-720- /@babel/plugin-transform-async-generator-functions@7.25.0(@babel/core@7.25.2):721- resolution: {integrity: sha512-uaIi2FdqzjpAMvVqvB51S42oC2JEVgh0LDsGfZVDysWE8LrJtQC2jvKmOqEYThKyB7bDEb7BP1GYWDm7tABA0Q==}722- engines: {node: '>=6.9.0'}723- peerDependencies:724- '@babel/core': ^7.0.0-0725- dependencies:726- '@babel/core': 7.25.2727- '@babel/helper-plugin-utils': 7.24.8728- '@babel/helper-remap-async-to-generator': 7.25.0(@babel/core@7.25.2)729- '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.25.2)730- '@babel/traverse': 7.25.3731- transitivePeerDependencies:732- - supports-color733- dev: true734-735- /@babel/plugin-transform-async-to-generator@7.24.7(@babel/core@7.25.2):736- resolution: {integrity: sha512-SQY01PcJfmQ+4Ash7NE+rpbLFbmqA2GPIgqzxfFTL4t1FKRq4zTms/7htKpoCUI9OcFYgzqfmCdH53s6/jn5fA==}737- engines: {node: '>=6.9.0'}738- peerDependencies:739- '@babel/core': ^7.0.0-0740- dependencies:741- '@babel/core': 7.25.2742- '@babel/helper-module-imports': 7.24.7743- '@babel/helper-plugin-utils': 7.24.8744- '@babel/helper-remap-async-to-generator': 7.25.0(@babel/core@7.25.2)745- transitivePeerDependencies:746- - supports-color747- dev: true748-749- /@babel/plugin-transform-block-scoped-functions@7.24.7(@babel/core@7.25.2):750- resolution: {integrity: sha512-yO7RAz6EsVQDaBH18IDJcMB1HnrUn2FJ/Jslc/WtPPWcjhpUJXU/rjbwmluzp7v/ZzWcEhTMXELnnsz8djWDwQ==}751- engines: {node: '>=6.9.0'}752- peerDependencies:753- '@babel/core': ^7.0.0-0754- dependencies:755- '@babel/core': 7.25.2756- '@babel/helper-plugin-utils': 7.24.8757- dev: true758-759- /@babel/plugin-transform-block-scoping@7.25.0(@babel/core@7.25.2):760- resolution: {integrity: sha512-yBQjYoOjXlFv9nlXb3f1casSHOZkWr29NX+zChVanLg5Nc157CrbEX9D7hxxtTpuFy7Q0YzmmWfJxzvps4kXrQ==}761- engines: {node: '>=6.9.0'}762- peerDependencies:763- '@babel/core': ^7.0.0-0764- dependencies:765- '@babel/core': 7.25.2766- '@babel/helper-plugin-utils': 7.24.8767- dev: true768-769- /@babel/plugin-transform-class-properties@7.24.7(@babel/core@7.25.2):770- resolution: {integrity: sha512-vKbfawVYayKcSeSR5YYzzyXvsDFWU2mD8U5TFeXtbCPLFUqe7GyCgvO6XDHzje862ODrOwy6WCPmKeWHbCFJ4w==}771- engines: {node: '>=6.9.0'}772- peerDependencies:773- '@babel/core': ^7.0.0-0774- dependencies:775- '@babel/core': 7.25.2776- '@babel/helper-create-class-features-plugin': 7.25.0(@babel/core@7.25.2)777- '@babel/helper-plugin-utils': 7.24.8778- transitivePeerDependencies:779- - supports-color780- dev: true781-782- /@babel/plugin-transform-class-static-block@7.24.7(@babel/core@7.25.2):783- resolution: {integrity: sha512-HMXK3WbBPpZQufbMG4B46A90PkuuhN9vBCb5T8+VAHqvAqvcLi+2cKoukcpmUYkszLhScU3l1iudhrks3DggRQ==}784- engines: {node: '>=6.9.0'}785- peerDependencies:786- '@babel/core': ^7.12.0787- dependencies:788- '@babel/core': 7.25.2789- '@babel/helper-create-class-features-plugin': 7.25.0(@babel/core@7.25.2)790- '@babel/helper-plugin-utils': 7.24.8791- '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.25.2)792- transitivePeerDependencies:793- - supports-color794- dev: true795-796- /@babel/plugin-transform-classes@7.25.0(@babel/core@7.25.2):797- resolution: {integrity: sha512-xyi6qjr/fYU304fiRwFbekzkqVJZ6A7hOjWZd+89FVcBqPV3S9Wuozz82xdpLspckeaafntbzglaW4pqpzvtSw==}798- engines: {node: '>=6.9.0'}799- peerDependencies:800- '@babel/core': ^7.0.0-0801- dependencies:802- '@babel/core': 7.25.2803- '@babel/helper-annotate-as-pure': 7.24.7804- '@babel/helper-compilation-targets': 7.25.2805- '@babel/helper-plugin-utils': 7.24.8806- '@babel/helper-replace-supers': 7.25.0(@babel/core@7.25.2)807- '@babel/traverse': 7.25.3808- globals: 11.12.0809- transitivePeerDependencies:810- - supports-color811- dev: true812-813- /@babel/plugin-transform-computed-properties@7.24.7(@babel/core@7.25.2):814- resolution: {integrity: sha512-25cS7v+707Gu6Ds2oY6tCkUwsJ9YIDbggd9+cu9jzzDgiNq7hR/8dkzxWfKWnTic26vsI3EsCXNd4iEB6e8esQ==}815- engines: {node: '>=6.9.0'}816- peerDependencies:817- '@babel/core': ^7.0.0-0818- dependencies:819- '@babel/core': 7.25.2820- '@babel/helper-plugin-utils': 7.24.8821- '@babel/template': 7.25.0822- dev: true823-824- /@babel/plugin-transform-destructuring@7.24.8(@babel/core@7.25.2):825- resolution: {integrity: sha512-36e87mfY8TnRxc7yc6M9g9gOB7rKgSahqkIKwLpz4Ppk2+zC2Cy1is0uwtuSG6AE4zlTOUa+7JGz9jCJGLqQFQ==}826- engines: {node: '>=6.9.0'}827- peerDependencies:828- '@babel/core': ^7.0.0-0829- dependencies:830- '@babel/core': 7.25.2831- '@babel/helper-plugin-utils': 7.24.8832- dev: true833-834- /@babel/plugin-transform-dotall-regex@7.24.7(@babel/core@7.25.2):835- resolution: {integrity: sha512-ZOA3W+1RRTSWvyqcMJDLqbchh7U4NRGqwRfFSVbOLS/ePIP4vHB5e8T8eXcuqyN1QkgKyj5wuW0lcS85v4CrSw==}836- engines: {node: '>=6.9.0'}837- peerDependencies:838- '@babel/core': ^7.0.0-0839- dependencies:840- '@babel/core': 7.25.2841- '@babel/helper-create-regexp-features-plugin': 7.25.2(@babel/core@7.25.2)842- '@babel/helper-plugin-utils': 7.24.8843- dev: true844-845- /@babel/plugin-transform-duplicate-keys@7.24.7(@babel/core@7.25.2):846- resolution: {integrity: sha512-JdYfXyCRihAe46jUIliuL2/s0x0wObgwwiGxw/UbgJBr20gQBThrokO4nYKgWkD7uBaqM7+9x5TU7NkExZJyzw==}847- engines: {node: '>=6.9.0'}848- peerDependencies:849- '@babel/core': ^7.0.0-0850- dependencies:851- '@babel/core': 7.25.2852- '@babel/helper-plugin-utils': 7.24.8853- dev: true854-855- /@babel/plugin-transform-duplicate-named-capturing-groups-regex@7.25.0(@babel/core@7.25.2):856- resolution: {integrity: sha512-YLpb4LlYSc3sCUa35un84poXoraOiQucUTTu8X1j18JV+gNa8E0nyUf/CjZ171IRGr4jEguF+vzJU66QZhn29g==}857- engines: {node: '>=6.9.0'}858- peerDependencies:859- '@babel/core': ^7.0.0860- dependencies:861- '@babel/core': 7.25.2862- '@babel/helper-create-regexp-features-plugin': 7.25.2(@babel/core@7.25.2)863- '@babel/helper-plugin-utils': 7.24.8864- dev: true865-866- /@babel/plugin-transform-dynamic-import@7.24.7(@babel/core@7.25.2):867- resolution: {integrity: sha512-sc3X26PhZQDb3JhORmakcbvkeInvxz+A8oda99lj7J60QRuPZvNAk9wQlTBS1ZynelDrDmTU4pw1tyc5d5ZMUg==}868- engines: {node: '>=6.9.0'}869- peerDependencies:870- '@babel/core': ^7.0.0-0871- dependencies:872- '@babel/core': 7.25.2873- '@babel/helper-plugin-utils': 7.24.8874- '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.25.2)875- dev: true876-877- /@babel/plugin-transform-exponentiation-operator@7.24.7(@babel/core@7.25.2):878- resolution: {integrity: sha512-Rqe/vSc9OYgDajNIK35u7ot+KeCoetqQYFXM4Epf7M7ez3lWlOjrDjrwMei6caCVhfdw+mIKD4cgdGNy5JQotQ==}879- engines: {node: '>=6.9.0'}880- peerDependencies:881- '@babel/core': ^7.0.0-0882- dependencies:883- '@babel/core': 7.25.2884- '@babel/helper-builder-binary-assignment-operator-visitor': 7.24.7885- '@babel/helper-plugin-utils': 7.24.8886- transitivePeerDependencies:887- - supports-color888- dev: true889-890- /@babel/plugin-transform-export-namespace-from@7.24.7(@babel/core@7.25.2):891- resolution: {integrity: sha512-v0K9uNYsPL3oXZ/7F9NNIbAj2jv1whUEtyA6aujhekLs56R++JDQuzRcP2/z4WX5Vg/c5lE9uWZA0/iUoFhLTA==}892- engines: {node: '>=6.9.0'}893- peerDependencies:894- '@babel/core': ^7.0.0-0895- dependencies:896- '@babel/core': 7.25.2897- '@babel/helper-plugin-utils': 7.24.8898- '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.25.2)899- dev: true900-901- /@babel/plugin-transform-for-of@7.24.7(@babel/core@7.25.2):902- resolution: {integrity: sha512-wo9ogrDG1ITTTBsy46oGiN1dS9A7MROBTcYsfS8DtsImMkHk9JXJ3EWQM6X2SUw4x80uGPlwj0o00Uoc6nEE3g==}903- engines: {node: '>=6.9.0'}904- peerDependencies:905- '@babel/core': ^7.0.0-0906- dependencies:907- '@babel/core': 7.25.2908- '@babel/helper-plugin-utils': 7.24.8909- '@babel/helper-skip-transparent-expression-wrappers': 7.24.7910- transitivePeerDependencies:911- - supports-color912- dev: true913-914- /@babel/plugin-transform-function-name@7.25.1(@babel/core@7.25.2):915- resolution: {integrity: sha512-TVVJVdW9RKMNgJJlLtHsKDTydjZAbwIsn6ySBPQaEAUU5+gVvlJt/9nRmqVbsV/IBanRjzWoaAQKLoamWVOUuA==}916- engines: {node: '>=6.9.0'}917- peerDependencies:918- '@babel/core': ^7.0.0-0919- dependencies:920- '@babel/core': 7.25.2921- '@babel/helper-compilation-targets': 7.25.2922- '@babel/helper-plugin-utils': 7.24.8923- '@babel/traverse': 7.25.3924- transitivePeerDependencies:925- - supports-color926- dev: true927-928- /@babel/plugin-transform-json-strings@7.24.7(@babel/core@7.25.2):929- resolution: {integrity: sha512-2yFnBGDvRuxAaE/f0vfBKvtnvvqU8tGpMHqMNpTN2oWMKIR3NqFkjaAgGwawhqK/pIN2T3XdjGPdaG0vDhOBGw==}930- engines: {node: '>=6.9.0'}931- peerDependencies:932- '@babel/core': ^7.0.0-0933- dependencies:934- '@babel/core': 7.25.2935- '@babel/helper-plugin-utils': 7.24.8936- '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.25.2)937- dev: true938-939- /@babel/plugin-transform-literals@7.25.2(@babel/core@7.25.2):940- resolution: {integrity: sha512-HQI+HcTbm9ur3Z2DkO+jgESMAMcYLuN/A7NRw9juzxAezN9AvqvUTnpKP/9kkYANz6u7dFlAyOu44ejuGySlfw==}941- engines: {node: '>=6.9.0'}942- peerDependencies:943- '@babel/core': ^7.0.0-0944- dependencies:945- '@babel/core': 7.25.2946- '@babel/helper-plugin-utils': 7.24.8947- dev: true948-949- /@babel/plugin-transform-logical-assignment-operators@7.24.7(@babel/core@7.25.2):950- resolution: {integrity: sha512-4D2tpwlQ1odXmTEIFWy9ELJcZHqrStlzK/dAOWYyxX3zT0iXQB6banjgeOJQXzEc4S0E0a5A+hahxPaEFYftsw==}951- engines: {node: '>=6.9.0'}952- peerDependencies:953- '@babel/core': ^7.0.0-0954- dependencies:955- '@babel/core': 7.25.2956- '@babel/helper-plugin-utils': 7.24.8957- '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.25.2)958- dev: true959-960- /@babel/plugin-transform-member-expression-literals@7.24.7(@babel/core@7.25.2):961- resolution: {integrity: sha512-T/hRC1uqrzXMKLQ6UCwMT85S3EvqaBXDGf0FaMf4446Qx9vKwlghvee0+uuZcDUCZU5RuNi4781UQ7R308zzBw==}962- engines: {node: '>=6.9.0'}963- peerDependencies:964- '@babel/core': ^7.0.0-0965- dependencies:966- '@babel/core': 7.25.2967- '@babel/helper-plugin-utils': 7.24.8968- dev: true969-970- /@babel/plugin-transform-modules-amd@7.24.7(@babel/core@7.25.2):971- resolution: {integrity: sha512-9+pB1qxV3vs/8Hdmz/CulFB8w2tuu6EB94JZFsjdqxQokwGa9Unap7Bo2gGBGIvPmDIVvQrom7r5m/TCDMURhg==}972- engines: {node: '>=6.9.0'}973- peerDependencies:974- '@babel/core': ^7.0.0-0975- dependencies:976- '@babel/core': 7.25.2977- '@babel/helper-module-transforms': 7.25.2(@babel/core@7.25.2)978- '@babel/helper-plugin-utils': 7.24.8979- transitivePeerDependencies:980- - supports-color981- dev: true982-983- /@babel/plugin-transform-modules-commonjs@7.24.8(@babel/core@7.25.2):984- resolution: {integrity: sha512-WHsk9H8XxRs3JXKWFiqtQebdh9b/pTk4EgueygFzYlTKAg0Ud985mSevdNjdXdFBATSKVJGQXP1tv6aGbssLKA==}985- engines: {node: '>=6.9.0'}986- peerDependencies:987- '@babel/core': ^7.0.0-0988- dependencies:989- '@babel/core': 7.25.2990- '@babel/helper-module-transforms': 7.25.2(@babel/core@7.25.2)991- '@babel/helper-plugin-utils': 7.24.8992- '@babel/helper-simple-access': 7.24.7993- transitivePeerDependencies:994- - supports-color995- dev: true996-997- /@babel/plugin-transform-modules-systemjs@7.25.0(@babel/core@7.25.2):998- resolution: {integrity: sha512-YPJfjQPDXxyQWg/0+jHKj1llnY5f/R6a0p/vP4lPymxLu7Lvl4k2WMitqi08yxwQcCVUUdG9LCUj4TNEgAp3Jw==}999- engines: {node: '>=6.9.0'}1000- peerDependencies:1001- '@babel/core': ^7.0.0-01002- dependencies:1003- '@babel/core': 7.25.21004- '@babel/helper-module-transforms': 7.25.2(@babel/core@7.25.2)1005- '@babel/helper-plugin-utils': 7.24.81006- '@babel/helper-validator-identifier': 7.24.71007- '@babel/traverse': 7.25.31008- transitivePeerDependencies:1009- - supports-color1010- dev: true1011-1012- /@babel/plugin-transform-modules-umd@7.24.7(@babel/core@7.25.2):1013- resolution: {integrity: sha512-3aytQvqJ/h9z4g8AsKPLvD4Zqi2qT+L3j7XoFFu1XBlZWEl2/1kWnhmAbxpLgPrHSY0M6UA02jyTiwUVtiKR6A==}1014- engines: {node: '>=6.9.0'}1015- peerDependencies:1016- '@babel/core': ^7.0.0-01017- dependencies:1018- '@babel/core': 7.25.21019- '@babel/helper-module-transforms': 7.25.2(@babel/core@7.25.2)1020- '@babel/helper-plugin-utils': 7.24.81021- transitivePeerDependencies:1022- - supports-color1023- dev: true1024-1025- /@babel/plugin-transform-named-capturing-groups-regex@7.24.7(@babel/core@7.25.2):1026- resolution: {integrity: sha512-/jr7h/EWeJtk1U/uz2jlsCioHkZk1JJZVcc8oQsJ1dUlaJD83f4/6Zeh2aHt9BIFokHIsSeDfhUmju0+1GPd6g==}1027- engines: {node: '>=6.9.0'}1028- peerDependencies:1029- '@babel/core': ^7.0.01030- dependencies:1031- '@babel/core': 7.25.21032- '@babel/helper-create-regexp-features-plugin': 7.25.2(@babel/core@7.25.2)1033- '@babel/helper-plugin-utils': 7.24.81034- dev: true1035-1036- /@babel/plugin-transform-new-target@7.24.7(@babel/core@7.25.2):1037- resolution: {integrity: sha512-RNKwfRIXg4Ls/8mMTza5oPF5RkOW8Wy/WgMAp1/F1yZ8mMbtwXW+HDoJiOsagWrAhI5f57Vncrmr9XeT4CVapA==}1038- engines: {node: '>=6.9.0'}1039- peerDependencies:1040- '@babel/core': ^7.0.0-01041- dependencies:1042- '@babel/core': 7.25.21043- '@babel/helper-plugin-utils': 7.24.81044- dev: true1045-1046- /@babel/plugin-transform-nullish-coalescing-operator@7.24.7(@babel/core@7.25.2):1047- resolution: {integrity: sha512-Ts7xQVk1OEocqzm8rHMXHlxvsfZ0cEF2yomUqpKENHWMF4zKk175Y4q8H5knJes6PgYad50uuRmt3UJuhBw8pQ==}1048- engines: {node: '>=6.9.0'}1049- peerDependencies:1050- '@babel/core': ^7.0.0-01051- dependencies:1052- '@babel/core': 7.25.21053- '@babel/helper-plugin-utils': 7.24.81054- '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.25.2)1055- dev: true1056-1057- /@babel/plugin-transform-numeric-separator@7.24.7(@babel/core@7.25.2):1058- resolution: {integrity: sha512-e6q1TiVUzvH9KRvicuxdBTUj4AdKSRwzIyFFnfnezpCfP2/7Qmbb8qbU2j7GODbl4JMkblitCQjKYUaX/qkkwA==}1059- engines: {node: '>=6.9.0'}1060- peerDependencies:1061- '@babel/core': ^7.0.0-01062- dependencies:1063- '@babel/core': 7.25.21064- '@babel/helper-plugin-utils': 7.24.81065- '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.25.2)1066- dev: true1067-1068- /@babel/plugin-transform-object-rest-spread@7.24.7(@babel/core@7.25.2):1069- resolution: {integrity: sha512-4QrHAr0aXQCEFni2q4DqKLD31n2DL+RxcwnNjDFkSG0eNQ/xCavnRkfCUjsyqGC2OviNJvZOF/mQqZBw7i2C5Q==}1070- engines: {node: '>=6.9.0'}1071- peerDependencies:1072- '@babel/core': ^7.0.0-01073- dependencies:1074- '@babel/core': 7.25.21075- '@babel/helper-compilation-targets': 7.25.21076- '@babel/helper-plugin-utils': 7.24.81077- '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.25.2)1078- '@babel/plugin-transform-parameters': 7.24.7(@babel/core@7.25.2)1079- dev: true1080-1081- /@babel/plugin-transform-object-super@7.24.7(@babel/core@7.25.2):1082- resolution: {integrity: sha512-A/vVLwN6lBrMFmMDmPPz0jnE6ZGx7Jq7d6sT/Ev4H65RER6pZ+kczlf1DthF5N0qaPHBsI7UXiE8Zy66nmAovg==}1083- engines: {node: '>=6.9.0'}1084- peerDependencies:1085- '@babel/core': ^7.0.0-01086- dependencies:1087- '@babel/core': 7.25.21088- '@babel/helper-plugin-utils': 7.24.81089- '@babel/helper-replace-supers': 7.25.0(@babel/core@7.25.2)1090- transitivePeerDependencies:1091- - supports-color1092- dev: true1093-1094- /@babel/plugin-transform-optional-catch-binding@7.24.7(@babel/core@7.25.2):1095- resolution: {integrity: sha512-uLEndKqP5BfBbC/5jTwPxLh9kqPWWgzN/f8w6UwAIirAEqiIVJWWY312X72Eub09g5KF9+Zn7+hT7sDxmhRuKA==}1096- engines: {node: '>=6.9.0'}1097- peerDependencies:1098- '@babel/core': ^7.0.0-01099- dependencies:1100- '@babel/core': 7.25.21101- '@babel/helper-plugin-utils': 7.24.81102- '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.25.2)1103- dev: true1104-1105- /@babel/plugin-transform-optional-chaining@7.24.8(@babel/core@7.25.2):1106- resolution: {integrity: sha512-5cTOLSMs9eypEy8JUVvIKOu6NgvbJMnpG62VpIHrTmROdQ+L5mDAaI40g25k5vXti55JWNX5jCkq3HZxXBQANw==}1107- engines: {node: '>=6.9.0'}1108- peerDependencies:1109- '@babel/core': ^7.0.0-01110- dependencies:1111- '@babel/core': 7.25.21112- '@babel/helper-plugin-utils': 7.24.81113- '@babel/helper-skip-transparent-expression-wrappers': 7.24.71114- '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.25.2)1115- transitivePeerDependencies:1116- - supports-color1117- dev: true1118-1119- /@babel/plugin-transform-parameters@7.24.7(@babel/core@7.25.2):1120- resolution: {integrity: sha512-yGWW5Rr+sQOhK0Ot8hjDJuxU3XLRQGflvT4lhlSY0DFvdb3TwKaY26CJzHtYllU0vT9j58hc37ndFPsqT1SrzA==}1121- engines: {node: '>=6.9.0'}1122- peerDependencies:1123- '@babel/core': ^7.0.0-01124- dependencies:1125- '@babel/core': 7.25.21126- '@babel/helper-plugin-utils': 7.24.81127- dev: true1128-1129- /@babel/plugin-transform-private-methods@7.24.7(@babel/core@7.25.2):1130- resolution: {integrity: sha512-COTCOkG2hn4JKGEKBADkA8WNb35TGkkRbI5iT845dB+NyqgO8Hn+ajPbSnIQznneJTa3d30scb6iz/DhH8GsJQ==}1131- engines: {node: '>=6.9.0'}1132- peerDependencies:1133- '@babel/core': ^7.0.0-01134- dependencies:1135- '@babel/core': 7.25.21136- '@babel/helper-create-class-features-plugin': 7.25.0(@babel/core@7.25.2)1137- '@babel/helper-plugin-utils': 7.24.81138- transitivePeerDependencies:1139- - supports-color1140- dev: true1141-1142- /@babel/plugin-transform-private-property-in-object@7.24.7(@babel/core@7.25.2):1143- resolution: {integrity: sha512-9z76mxwnwFxMyxZWEgdgECQglF2Q7cFLm0kMf8pGwt+GSJsY0cONKj/UuO4bOH0w/uAel3ekS4ra5CEAyJRmDA==}1144- engines: {node: '>=6.9.0'}1145- peerDependencies:1146- '@babel/core': ^7.0.0-01147- dependencies:1148- '@babel/core': 7.25.21149- '@babel/helper-annotate-as-pure': 7.24.71150- '@babel/helper-create-class-features-plugin': 7.25.0(@babel/core@7.25.2)1151- '@babel/helper-plugin-utils': 7.24.81152- '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.25.2)1153- transitivePeerDependencies:1154- - supports-color1155- dev: true1156-1157- /@babel/plugin-transform-property-literals@7.24.7(@babel/core@7.25.2):1158- resolution: {integrity: sha512-EMi4MLQSHfd2nrCqQEWxFdha2gBCqU4ZcCng4WBGZ5CJL4bBRW0ptdqqDdeirGZcpALazVVNJqRmsO8/+oNCBA==}1159- engines: {node: '>=6.9.0'}1160- peerDependencies:1161- '@babel/core': ^7.0.0-01162- dependencies:1163- '@babel/core': 7.25.21164- '@babel/helper-plugin-utils': 7.24.81165- dev: true1166-1167- /@babel/plugin-transform-react-jsx@7.25.2(@babel/core@7.25.2):1168- resolution: {integrity: sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==}1169- engines: {node: '>=6.9.0'}1170- peerDependencies:1171- '@babel/core': ^7.0.0-01172- dependencies:1173- '@babel/core': 7.25.21174- '@babel/helper-annotate-as-pure': 7.24.71175- '@babel/helper-module-imports': 7.24.71176- '@babel/helper-plugin-utils': 7.24.81177- '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.25.2)1178- '@babel/types': 7.25.21179- transitivePeerDependencies:1180- - supports-color1181- dev: true1182-1183- /@babel/plugin-transform-regenerator@7.24.7(@babel/core@7.25.2):1184- resolution: {integrity: sha512-lq3fvXPdimDrlg6LWBoqj+r/DEWgONuwjuOuQCSYgRroXDH/IdM1C0IZf59fL5cHLpjEH/O6opIRBbqv7ELnuA==}1185- engines: {node: '>=6.9.0'}1186- peerDependencies:1187- '@babel/core': ^7.0.0-01188- dependencies:1189- '@babel/core': 7.25.21190- '@babel/helper-plugin-utils': 7.24.81191- regenerator-transform: 0.15.21192- dev: true1193-1194- /@babel/plugin-transform-reserved-words@7.24.7(@babel/core@7.25.2):1195- resolution: {integrity: sha512-0DUq0pHcPKbjFZCfTss/pGkYMfy3vFWydkUBd9r0GHpIyfs2eCDENvqadMycRS9wZCXR41wucAfJHJmwA0UmoQ==}1196- engines: {node: '>=6.9.0'}1197- peerDependencies:1198- '@babel/core': ^7.0.0-01199- dependencies:1200- '@babel/core': 7.25.21201- '@babel/helper-plugin-utils': 7.24.81202- dev: true1203-1204- /@babel/plugin-transform-runtime@7.24.7(@babel/core@7.25.2):1205- resolution: {integrity: sha512-YqXjrk4C+a1kZjewqt+Mmu2UuV1s07y8kqcUf4qYLnoqemhR4gRQikhdAhSVJioMjVTu6Mo6pAbaypEA3jY6fw==}1206- engines: {node: '>=6.9.0'}1207- peerDependencies:1208- '@babel/core': ^7.0.0-01209- dependencies:1210- '@babel/core': 7.25.21211- '@babel/helper-module-imports': 7.24.71212- '@babel/helper-plugin-utils': 7.24.81213- babel-plugin-polyfill-corejs2: 0.4.11(@babel/core@7.25.2)1214- babel-plugin-polyfill-corejs3: 0.10.6(@babel/core@7.25.2)1215- babel-plugin-polyfill-regenerator: 0.6.2(@babel/core@7.25.2)1216- semver: 6.3.11217- transitivePeerDependencies:1218- - supports-color1219- dev: true1220-1221- /@babel/plugin-transform-shorthand-properties@7.24.7(@babel/core@7.25.2):1222- resolution: {integrity: sha512-KsDsevZMDsigzbA09+vacnLpmPH4aWjcZjXdyFKGzpplxhbeB4wYtury3vglQkg6KM/xEPKt73eCjPPf1PgXBA==}1223- engines: {node: '>=6.9.0'}1224- peerDependencies:1225- '@babel/core': ^7.0.0-01226- dependencies:1227- '@babel/core': 7.25.21228- '@babel/helper-plugin-utils': 7.24.81229- dev: true1230-1231- /@babel/plugin-transform-spread@7.24.7(@babel/core@7.25.2):1232- resolution: {integrity: sha512-x96oO0I09dgMDxJaANcRyD4ellXFLLiWhuwDxKZX5g2rWP1bTPkBSwCYv96VDXVT1bD9aPj8tppr5ITIh8hBng==}1233- engines: {node: '>=6.9.0'}1234- peerDependencies:1235- '@babel/core': ^7.0.0-01236- dependencies:1237- '@babel/core': 7.25.21238- '@babel/helper-plugin-utils': 7.24.81239- '@babel/helper-skip-transparent-expression-wrappers': 7.24.71240- transitivePeerDependencies:1241- - supports-color1242- dev: true1243-1244- /@babel/plugin-transform-sticky-regex@7.24.7(@babel/core@7.25.2):1245- resolution: {integrity: sha512-kHPSIJc9v24zEml5geKg9Mjx5ULpfncj0wRpYtxbvKyTtHCYDkVE3aHQ03FrpEo4gEe2vrJJS1Y9CJTaThA52g==}1246- engines: {node: '>=6.9.0'}1247- peerDependencies:1248- '@babel/core': ^7.0.0-01249- dependencies:1250- '@babel/core': 7.25.21251- '@babel/helper-plugin-utils': 7.24.81252- dev: true1253-1254- /@babel/plugin-transform-template-literals@7.24.7(@babel/core@7.25.2):1255- resolution: {integrity: sha512-AfDTQmClklHCOLxtGoP7HkeMw56k1/bTQjwsfhL6pppo/M4TOBSq+jjBUBLmV/4oeFg4GWMavIl44ZeCtmmZTw==}1256- engines: {node: '>=6.9.0'}1257- peerDependencies:1258- '@babel/core': ^7.0.0-01259- dependencies:1260- '@babel/core': 7.25.21261- '@babel/helper-plugin-utils': 7.24.81262- dev: true1263-1264- /@babel/plugin-transform-typeof-symbol@7.24.8(@babel/core@7.25.2):1265- resolution: {integrity: sha512-adNTUpDCVnmAE58VEqKlAA6ZBlNkMnWD0ZcW76lyNFN3MJniyGFZfNwERVk8Ap56MCnXztmDr19T4mPTztcuaw==}1266- engines: {node: '>=6.9.0'}1267- peerDependencies:1268- '@babel/core': ^7.0.0-01269- dependencies:1270- '@babel/core': 7.25.21271- '@babel/helper-plugin-utils': 7.24.81272- dev: true1273-1274- /@babel/plugin-transform-typescript@7.25.2(@babel/core@7.25.2):1275- resolution: {integrity: sha512-lBwRvjSmqiMYe/pS0+1gggjJleUJi7NzjvQ1Fkqtt69hBa/0t1YuW/MLQMAPixfwaQOHUXsd6jeU3Z+vdGv3+A==}1276- engines: {node: '>=6.9.0'}1277- peerDependencies:1278- '@babel/core': ^7.0.0-01279- dependencies:1280- '@babel/core': 7.25.21281- '@babel/helper-annotate-as-pure': 7.24.71282- '@babel/helper-create-class-features-plugin': 7.25.0(@babel/core@7.25.2)1283- '@babel/helper-plugin-utils': 7.24.81284- '@babel/helper-skip-transparent-expression-wrappers': 7.24.71285- '@babel/plugin-syntax-typescript': 7.24.7(@babel/core@7.25.2)1286- transitivePeerDependencies:1287- - supports-color1288- dev: true1289-1290- /@babel/plugin-transform-unicode-escapes@7.24.7(@babel/core@7.25.2):1291- resolution: {integrity: sha512-U3ap1gm5+4edc2Q/P+9VrBNhGkfnf+8ZqppY71Bo/pzZmXhhLdqgaUl6cuB07O1+AQJtCLfaOmswiNbSQ9ivhw==}1292- engines: {node: '>=6.9.0'}1293- peerDependencies:1294- '@babel/core': ^7.0.0-01295- dependencies:1296- '@babel/core': 7.25.21297- '@babel/helper-plugin-utils': 7.24.81298- dev: true1299-1300- /@babel/plugin-transform-unicode-property-regex@7.24.7(@babel/core@7.25.2):1301- resolution: {integrity: sha512-uH2O4OV5M9FZYQrwc7NdVmMxQJOCCzFeYudlZSzUAHRFeOujQefa92E74TQDVskNHCzOXoigEuoyzHDhaEaK5w==}1302- engines: {node: '>=6.9.0'}1303- peerDependencies:1304- '@babel/core': ^7.0.0-01305- dependencies:1306- '@babel/core': 7.25.21307- '@babel/helper-create-regexp-features-plugin': 7.25.2(@babel/core@7.25.2)1308- '@babel/helper-plugin-utils': 7.24.81309- dev: true1310-1311- /@babel/plugin-transform-unicode-regex@7.24.7(@babel/core@7.25.2):1312- resolution: {integrity: sha512-hlQ96MBZSAXUq7ltkjtu3FJCCSMx/j629ns3hA3pXnBXjanNP0LHi+JpPeA81zaWgVK1VGH95Xuy7u0RyQ8kMg==}1313- engines: {node: '>=6.9.0'}1314- peerDependencies:1315- '@babel/core': ^7.0.0-01316- dependencies:1317- '@babel/core': 7.25.21318- '@babel/helper-create-regexp-features-plugin': 7.25.2(@babel/core@7.25.2)1319- '@babel/helper-plugin-utils': 7.24.81320- dev: true1321-1322- /@babel/plugin-transform-unicode-sets-regex@7.24.7(@babel/core@7.25.2):1323- resolution: {integrity: sha512-2G8aAvF4wy1w/AGZkemprdGMRg5o6zPNhbHVImRz3lss55TYCBd6xStN19rt8XJHq20sqV0JbyWjOWwQRwV/wg==}1324- engines: {node: '>=6.9.0'}1325- peerDependencies:1326- '@babel/core': ^7.0.01327- dependencies:1328- '@babel/core': 7.25.21329- '@babel/helper-create-regexp-features-plugin': 7.25.2(@babel/core@7.25.2)1330- '@babel/helper-plugin-utils': 7.24.81331- dev: true1332-1333- /@babel/preset-env@7.25.3(@babel/core@7.25.2):1334- resolution: {integrity: sha512-QsYW7UeAaXvLPX9tdVliMJE7MD7M6MLYVTovRTIwhoYQVFHR1rM4wO8wqAezYi3/BpSD+NzVCZ69R6smWiIi8g==}1335- engines: {node: '>=6.9.0'}1336- peerDependencies:1337- '@babel/core': ^7.0.0-01338- dependencies:1339- '@babel/compat-data': 7.25.21340- '@babel/core': 7.25.21341- '@babel/helper-compilation-targets': 7.25.21342- '@babel/helper-plugin-utils': 7.24.81343- '@babel/helper-validator-option': 7.24.81344- '@babel/plugin-bugfix-firefox-class-in-computed-class-key': 7.25.3(@babel/core@7.25.2)1345- '@babel/plugin-bugfix-safari-class-field-initializer-scope': 7.25.0(@babel/core@7.25.2)1346- '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.25.0(@babel/core@7.25.2)1347- '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.24.7(@babel/core@7.25.2)1348- '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.25.0(@babel/core@7.25.2)1349- '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/core@7.25.2)1350- '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.25.2)1351- '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.25.2)1352- '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.25.2)1353- '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.25.2)1354- '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.25.2)1355- '@babel/plugin-syntax-import-assertions': 7.24.7(@babel/core@7.25.2)1356- '@babel/plugin-syntax-import-attributes': 7.24.7(@babel/core@7.25.2)1357- '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.25.2)1358- '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.25.2)1359- '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.25.2)1360- '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.25.2)1361- '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.25.2)1362- '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.25.2)1363- '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.25.2)1364- '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.25.2)1365- '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.25.2)1366- '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.25.2)1367- '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/core@7.25.2)1368- '@babel/plugin-transform-arrow-functions': 7.24.7(@babel/core@7.25.2)1369- '@babel/plugin-transform-async-generator-functions': 7.25.0(@babel/core@7.25.2)1370- '@babel/plugin-transform-async-to-generator': 7.24.7(@babel/core@7.25.2)1371- '@babel/plugin-transform-block-scoped-functions': 7.24.7(@babel/core@7.25.2)1372- '@babel/plugin-transform-block-scoping': 7.25.0(@babel/core@7.25.2)1373- '@babel/plugin-transform-class-properties': 7.24.7(@babel/core@7.25.2)1374- '@babel/plugin-transform-class-static-block': 7.24.7(@babel/core@7.25.2)1375- '@babel/plugin-transform-classes': 7.25.0(@babel/core@7.25.2)1376- '@babel/plugin-transform-computed-properties': 7.24.7(@babel/core@7.25.2)1377- '@babel/plugin-transform-destructuring': 7.24.8(@babel/core@7.25.2)1378- '@babel/plugin-transform-dotall-regex': 7.24.7(@babel/core@7.25.2)1379- '@babel/plugin-transform-duplicate-keys': 7.24.7(@babel/core@7.25.2)1380- '@babel/plugin-transform-duplicate-named-capturing-groups-regex': 7.25.0(@babel/core@7.25.2)1381- '@babel/plugin-transform-dynamic-import': 7.24.7(@babel/core@7.25.2)1382- '@babel/plugin-transform-exponentiation-operator': 7.24.7(@babel/core@7.25.2)1383- '@babel/plugin-transform-export-namespace-from': 7.24.7(@babel/core@7.25.2)1384- '@babel/plugin-transform-for-of': 7.24.7(@babel/core@7.25.2)1385- '@babel/plugin-transform-function-name': 7.25.1(@babel/core@7.25.2)1386- '@babel/plugin-transform-json-strings': 7.24.7(@babel/core@7.25.2)1387- '@babel/plugin-transform-literals': 7.25.2(@babel/core@7.25.2)1388- '@babel/plugin-transform-logical-assignment-operators': 7.24.7(@babel/core@7.25.2)1389- '@babel/plugin-transform-member-expression-literals': 7.24.7(@babel/core@7.25.2)1390- '@babel/plugin-transform-modules-amd': 7.24.7(@babel/core@7.25.2)1391- '@babel/plugin-transform-modules-commonjs': 7.24.8(@babel/core@7.25.2)1392- '@babel/plugin-transform-modules-systemjs': 7.25.0(@babel/core@7.25.2)1393- '@babel/plugin-transform-modules-umd': 7.24.7(@babel/core@7.25.2)1394- '@babel/plugin-transform-named-capturing-groups-regex': 7.24.7(@babel/core@7.25.2)1395- '@babel/plugin-transform-new-target': 7.24.7(@babel/core@7.25.2)1396- '@babel/plugin-transform-nullish-coalescing-operator': 7.24.7(@babel/core@7.25.2)1397- '@babel/plugin-transform-numeric-separator': 7.24.7(@babel/core@7.25.2)1398- '@babel/plugin-transform-object-rest-spread': 7.24.7(@babel/core@7.25.2)1399- '@babel/plugin-transform-object-super': 7.24.7(@babel/core@7.25.2)1400- '@babel/plugin-transform-optional-catch-binding': 7.24.7(@babel/core@7.25.2)1401- '@babel/plugin-transform-optional-chaining': 7.24.8(@babel/core@7.25.2)1402- '@babel/plugin-transform-parameters': 7.24.7(@babel/core@7.25.2)1403- '@babel/plugin-transform-private-methods': 7.24.7(@babel/core@7.25.2)1404- '@babel/plugin-transform-private-property-in-object': 7.24.7(@babel/core@7.25.2)1405- '@babel/plugin-transform-property-literals': 7.24.7(@babel/core@7.25.2)1406- '@babel/plugin-transform-regenerator': 7.24.7(@babel/core@7.25.2)1407- '@babel/plugin-transform-reserved-words': 7.24.7(@babel/core@7.25.2)1408- '@babel/plugin-transform-shorthand-properties': 7.24.7(@babel/core@7.25.2)1409- '@babel/plugin-transform-spread': 7.24.7(@babel/core@7.25.2)1410- '@babel/plugin-transform-sticky-regex': 7.24.7(@babel/core@7.25.2)1411- '@babel/plugin-transform-template-literals': 7.24.7(@babel/core@7.25.2)1412- '@babel/plugin-transform-typeof-symbol': 7.24.8(@babel/core@7.25.2)1413- '@babel/plugin-transform-unicode-escapes': 7.24.7(@babel/core@7.25.2)1414- '@babel/plugin-transform-unicode-property-regex': 7.24.7(@babel/core@7.25.2)1415- '@babel/plugin-transform-unicode-regex': 7.24.7(@babel/core@7.25.2)1416- '@babel/plugin-transform-unicode-sets-regex': 7.24.7(@babel/core@7.25.2)1417- '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/core@7.25.2)1418- babel-plugin-polyfill-corejs2: 0.4.11(@babel/core@7.25.2)1419- babel-plugin-polyfill-corejs3: 0.10.6(@babel/core@7.25.2)1420- babel-plugin-polyfill-regenerator: 0.6.2(@babel/core@7.25.2)1421- core-js-compat: 3.38.01422- semver: 6.3.11423- transitivePeerDependencies:1424- - supports-color1425- dev: true1426-1427- /@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.25.2):1428- resolution: {integrity: sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==}1429- peerDependencies:1430- '@babel/core': ^7.0.0-0 || ^8.0.0-0 <8.0.01431- dependencies:1432- '@babel/core': 7.25.21433- '@babel/helper-plugin-utils': 7.24.81434- '@babel/types': 7.25.21435- esutils: 2.0.31436- dev: true1437-1438- /@babel/regjsgen@0.8.0:1439- resolution: {integrity: sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==}1440- dev: true1441-351 /@babel/runtime@7.25.0:352 resolution: {integrity: sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==}353 engines: {node: '>=6.9.0'}354 dependencies:469 unmodified lines824 eslint: 8.57.0825 eslint-visitor-keys: 3.4.3826 dev: true827 1919- /@eslint-community/regexpp@4.10.1:1920- resolution: {integrity: sha512-Zm2NGpWELsQAD1xsJzGQpYfvICSsFkEpU0jxBjfdC6uNEWXcHnfs9hScFWtXVDVl+rBQJGrl4g1vcKIejpH9dA==}828+ /@eslint-community/regexpp@4.10.0:829+ resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==}830 engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}831 dev: true832 833 /@eslint-community/regexpp@4.11.0:5 unmodified lines839 resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==}840 engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}841 dependencies:842 ajv: 6.12.61934- debug: 4.3.5843+ debug: 4.3.4844 espree: 9.6.1845 globals: 13.24.0846 ignore: 5.3.1847 import-fresh: 3.3.011 unmodified lines859 860 /@humanwhocodes/config-array@0.11.14:861 resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==}862 engines: {node: '>=10.10.0'}1954- deprecated: Use @eslint/config-array instead863 dependencies:864 '@humanwhocodes/object-schema': 2.0.31957- debug: 4.3.5865+ debug: 4.3.4866 minimatch: 3.1.2867 transitivePeerDependencies:868 - supports-color869 dev: true4 unmodified lines874 dev: true875 876 /@humanwhocodes/object-schema@2.0.3:877 resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==}1970- deprecated: Use @eslint/object-schema instead878 dev: true879 880 /@isaacs/cliui@8.0.2:881 resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}30 unmodified lines912 resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}913 engines: {node: '>=6.0.0'}914 dev: true915 2009- /@jridgewell/source-map@0.3.6:2010- resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==}2011- dependencies:2012- '@jridgewell/gen-mapping': 0.3.52013- '@jridgewell/trace-mapping': 0.3.252014- dev: true2015-916 /@jridgewell/sourcemap-codec@1.5.0:917 resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}918 dev: true919 63 unmodified lines983 rollup: 4.20.0984 slash: 4.0.0985 dev: true986 2087- /@rollup/plugin-babel@6.0.4(@babel/core@7.25.2)(rollup@4.20.0):2088- resolution: {integrity: sha512-YF7Y52kFdFT/xVSuVdjkV5ZdX/3YtmX0QulG+x0taQOtJdHYzVU61aSSkAgVJ7NOv6qPkIYiJSgSWWN/DM5sGw==}2089- engines: {node: '>=14.0.0'}2090- peerDependencies:2091- '@babel/core': ^7.0.02092- '@types/babel__core': ^7.1.92093- rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.02094- peerDependenciesMeta:2095- '@types/babel__core':2096- optional: true2097- rollup:2098- optional: true2099- dependencies:2100- '@babel/core': 7.25.22101- '@babel/helper-module-imports': 7.24.72102- '@rollup/pluginutils': 5.1.0(rollup@4.20.0)2103- rollup: 4.20.02104- transitivePeerDependencies:2105- - supports-color2106- dev: true2107-987 /@rollup/plugin-node-resolve@15.2.3(rollup@4.20.0):988 resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==}989 engines: {node: '>=14.0.0'}990 peerDependencies:24 unmodified lines1015 magic-string: 0.30.111016 rollup: 4.20.01017 dev: true1018 2140- /@rollup/plugin-terser@0.4.4(rollup@4.20.0):2141- resolution: {integrity: sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==}2142- engines: {node: '>=14.0.0'}2143- peerDependencies:2144- rollup: ^2.0.0||^3.0.0||^4.0.02145- peerDependenciesMeta:2146- rollup:2147- optional: true2148- dependencies:2149- rollup: 4.20.02150- serialize-javascript: 6.0.22151- smob: 1.5.02152- terser: 5.31.62153- dev: true2154-1019 /@rollup/plugin-typescript@11.1.6(rollup@4.20.0)(typescript@5.5.4):1020 resolution: {integrity: sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==}1021 engines: {node: '>=14.0.0'}1022 peerDependencies:505 unmodified lines1528 loupe: 3.1.11529 tinyrainbow: 1.2.01530 dev: true1531 2668- /acorn-jsx@5.3.2(acorn@8.12.0):1532+ /acorn-jsx@5.3.2(acorn@8.11.3):1533 resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}1534 peerDependencies:1535 acorn: ^6.0.0 || ^7.0.0 || ^8.0.01536 dependencies:2673- acorn: 8.12.01537+ acorn: 8.11.31538 dev: true1539 2676- /acorn@8.12.0:2677- resolution: {integrity: sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==}1540+ /acorn@8.11.3:1541+ resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==}1542 engines: {node: '>=0.4.0'}1543 hasBin: true1544 dev: true1545 2682- /acorn@8.12.1:2683- resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==}2684- engines: {node: '>=0.4.0'}2685- hasBin: true2686- dev: true2687-1546 /agent-base@7.1.1:1547 resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==}1548 engines: {node: '>= 14'}1549 dependencies:164 unmodified lines1714 dependencies:1715 possible-typed-array-names: 1.0.01716 dev: true1717 2860- /babel-plugin-polyfill-corejs2@0.4.11(@babel/core@7.25.2):2861- resolution: {integrity: sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q==}2862- peerDependencies:2863- '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.02864- dependencies:2865- '@babel/compat-data': 7.25.22866- '@babel/core': 7.25.22867- '@babel/helper-define-polyfill-provider': 0.6.2(@babel/core@7.25.2)2868- semver: 6.3.12869- transitivePeerDependencies:2870- - supports-color2871- dev: true2872-2873- /babel-plugin-polyfill-corejs3@0.10.6(@babel/core@7.25.2):2874- resolution: {integrity: sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==}2875- peerDependencies:2876- '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.02877- dependencies:2878- '@babel/core': 7.25.22879- '@babel/helper-define-polyfill-provider': 0.6.2(@babel/core@7.25.2)2880- core-js-compat: 3.38.02881- transitivePeerDependencies:2882- - supports-color2883- dev: true2884-2885- /babel-plugin-polyfill-regenerator@0.6.2(@babel/core@7.25.2):2886- resolution: {integrity: sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg==}2887- peerDependencies:2888- '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.02889- dependencies:2890- '@babel/core': 7.25.22891- '@babel/helper-define-polyfill-provider': 0.6.2(@babel/core@7.25.2)2892- transitivePeerDependencies:2893- - supports-color2894- dev: true2895-1718 /balanced-match@1.0.2:1719 resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}1720 dev: true1721 27 unmodified lines1749 node-releases: 2.0.181750 update-browserslist-db: 1.1.0(browserslist@4.23.3)1751 dev: true1752 2931- /buffer-from@1.1.2:2932- resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}2933- dev: true2934-1753 /builtin-modules@3.3.0:1754 resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==}1755 engines: {node: '>=6'}1756 dev: true83 unmodified lines1840 dependencies:1841 delayed-stream: 1.0.01842 dev: true1843 3026- /commander@2.20.3:3027- resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}3028- dev: true3029-1844 /concat-map@0.0.1:1845 resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}1846 dev: true1847 1848 /convert-source-map@2.0.0:1849 resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}1850 dev: true1851 3038- /core-js-compat@3.38.0:3039- resolution: {integrity: sha512-75LAicdLa4OJVwFxFbQR3NdnZjNgX6ILpVcVzcC4T2smerB5lELMrJQQQoWV6TiuC/vlaFqgU2tKQx9w5s0e0A==}3040- dependencies:3041- browserslist: 4.23.33042- dev: true3043-1852 /cross-spawn@7.0.3:1853 resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}1854 engines: {node: '>= 8'}1855 dependencies:58 unmodified lines1914 dependencies:1915 ms: 2.1.31916 dev: true1917 3110- /debug@4.3.5:3111- resolution: {integrity: sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==}1918+ /debug@4.3.4:1919+ resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}1920 engines: {node: '>=6.0'}1921 peerDependencies:1922 supports-color: '*'1923 peerDependenciesMeta:85 unmodified lines2009 /dom-accessibility-api@0.5.16:2010 resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==}2011 dev: true2012 3205- /downlevel-dts@0.11.0:3206- resolution: {integrity: sha512-vo835pntK7kzYStk7xUHDifiYJvXxVhUapt85uk2AI94gUUAQX9HNRtrcMHNSc3YHJUEHGbYIGsM99uIbgAtxw==}3207- hasBin: true3208- dependencies:3209- semver: 7.6.33210- shelljs: 0.8.53211- typescript: 5.6.0-dev.202408143212- dev: true3213-2013 /eastasianwidth@0.2.0:2014 resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}2015 dev: true2016 417 unmodified lines2434 engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}2435 hasBin: true2436 dependencies:2437 '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0)3639- '@eslint-community/regexpp': 4.10.12438+ '@eslint-community/regexpp': 4.10.02439 '@eslint/eslintrc': 2.1.42440 '@eslint/js': 8.57.02441 '@humanwhocodes/config-array': 0.11.142442 '@humanwhocodes/module-importer': 1.0.11 unmodified line2444 '@ungap/structured-clone': 1.2.02445 ajv: 6.12.62446 chalk: 4.1.22447 cross-spawn: 7.0.33649- debug: 4.3.52448+ debug: 4.3.42449 doctrine: 3.0.02450 escape-string-regexp: 4.0.02451 eslint-scope: 7.2.22452 eslint-visitor-keys: 3.4.326 unmodified lines2479 /espree@9.6.1:2480 resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==}2481 engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}2482 dependencies:3684- acorn: 8.12.03685- acorn-jsx: 5.3.2(acorn@8.12.0)2483+ acorn: 8.11.32484+ acorn-jsx: 5.3.2(acorn@8.11.3)2485 eslint-visitor-keys: 3.4.32486 dev: true2487 2488 /esquery@1.5.0:237 unmodified lines2726 dev: true2727 2728 /glob@7.2.3:2729 resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}3931- deprecated: Glob versions prior to v9 are no longer supported2730 dependencies:2731 fs.realpath: 1.0.02732 inflight: 1.0.62733 inherits: 2.0.4173 unmodified lines2907 dev: true2908 2909 /inflight@1.0.6:2910 resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}4113- deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.2911 dependencies:2912 once: 1.4.02913 wrappy: 1.0.22914 dev: true313 unmodified lines3228 - supports-color3229 - utf-8-validate3230 dev: true3231 4435- /jsesc@0.5.0:4436- resolution: {integrity: sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==}4437- hasBin: true4438- dev: true4439-3232 /jsesc@2.5.2:3233 resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==}3234 engines: {node: '>=4'}3235 hasBin: true60 unmodified lines3296 dependencies:3297 p-locate: 5.0.03298 dev: true3299 4508- /lodash.debounce@4.0.8:4509- resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==}4510- dev: true4511-3300 /lodash.merge@4.6.2:3301 resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}3302 dev: true3303 378 unmodified lines3682 /queue-microtask@1.2.3:3683 resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}3684 dev: true3685 4898- /randombytes@2.1.0:4899- resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==}4900- dependencies:4901- safe-buffer: 5.2.14902- dev: true4903-3686 /react-dom@19.0.0-rc.0(react@19.0.0-rc.0):3687 resolution: {integrity: sha512-MhgN2RMYFUkZekkFbsXg9ycwEGaMBzATpTNvGGvWNA9BZZEkdzIL4pv7iDuZKn48YoGARk8ydu4S+Ehd8Yrc4g==}3688 peerDependencies:3689 react: 19.0.0-rc.012 unmodified lines3702 3703 /react@19.0.0-rc.0:3704 resolution: {integrity: sha512-8nrDCl5uE54FHeKqKrEO0TS+10bT4cxutJGb2okiJc0FHMQ6I3FeItaqly/1nbijlhSO3HmAVyPIexIQQWYAtQ==}3705 engines: {node: '>=0.10.0'}3706+ dev: true3707 3708 /rechoir@0.6.2:3709 resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==}3710 engines: {node: '>= 0.10'}17 unmodified lines3728 globalthis: 1.0.43729 which-builtin-type: 1.1.43730 dev: true3731 4949- /regenerate-unicode-properties@10.1.1:4950- resolution: {integrity: sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==}4951- engines: {node: '>=4'}4952- dependencies:4953- regenerate: 1.4.24954- dev: true4955-4956- /regenerate@1.4.2:4957- resolution: {integrity: sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==}4958- dev: true4959-3732 /regenerator-runtime@0.14.1:3733 resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==}3734 dev: true3735 4964- /regenerator-transform@0.15.2:4965- resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==}4966- dependencies:4967- '@babel/runtime': 7.25.04968- dev: true4969-3736 /regexp.prototype.flags@1.5.2:3737 resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==}3738 engines: {node: '>= 0.4'}3739 dependencies:2 unmodified lines3742 es-errors: 1.3.03743 set-function-name: 2.0.23744 dev: true3745 4980- /regexpu-core@5.3.2:4981- resolution: {integrity: sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==}4982- engines: {node: '>=4'}4983- dependencies:4984- '@babel/regjsgen': 0.8.04985- regenerate: 1.4.24986- regenerate-unicode-properties: 10.1.14987- regjsparser: 0.9.14988- unicode-match-property-ecmascript: 2.0.04989- unicode-match-property-value-ecmascript: 2.1.04990- dev: true4991-4992- /regjsparser@0.9.1:4993- resolution: {integrity: sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==}4994- hasBin: true4995- dependencies:4996- jsesc: 0.5.04997- dev: true4998-3746 /requires-port@1.0.0:3747 resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==}3748 dev: true3749 30 unmodified lines3780 dev: true3781 3782 /rimraf@3.0.2:3783 resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}5037- deprecated: Rimraf versions prior to v4 are no longer supported3784 hasBin: true3785 dependencies:3786 glob: 7.2.33787 dev: true64 unmodified lines3852 has-symbols: 1.0.33853 isarray: 2.0.53854 dev: true3855 5110- /safe-buffer@5.2.1:5111- resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}5112- dev: true5113-3856 /safe-regex-test@1.0.3:3857 resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==}3858 engines: {node: '>= 0.4'}3859 dependencies:27 unmodified lines3887 engines: {node: '>=10'}3888 hasBin: true3889 dev: true3890 5149- /serialize-javascript@6.0.2:5150- resolution: {integrity: sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==}5151- dependencies:5152- randombytes: 2.1.05153- dev: true5154-3891 /set-function-length@1.2.2:3892 resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}3893 engines: {node: '>= 0.4'}3894 dependencies:83 unmodified lines3978 resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==}3979 engines: {node: '>=12'}3980 dev: true3981 5246- /smob@1.5.0:5247- resolution: {integrity: sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==}5248- dev: true5249-3982 /source-map-js@1.2.0:3983 resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==}3984 engines: {node: '>=0.10.0'}3985 dev: true3986 5255- /source-map-support@0.5.21:5256- resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}5257- dependencies:5258- buffer-from: 1.1.25259- source-map: 0.6.15260- dev: true5261-5262- /source-map@0.6.1:5263- resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}5264- engines: {node: '>=0.10.0'}5265- dev: true5266-3987 /stackback@0.0.2:3988 resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}3989 dev: true3990 130 unmodified lines4121 '@pkgr/core': 0.1.14122 tslib: 2.6.34123 dev: true4124 5405- /terser@5.31.6:5406- resolution: {integrity: sha512-PQ4DAriWzKj+qgehQ7LK5bQqCFNMmlhjR2PFFLuqGCpuCAauxemVBWwWOxo3UIwWQx8+Pr61Df++r76wDmkQBg==}5407- engines: {node: '>=10'}5408- hasBin: true5409- dependencies:5410- '@jridgewell/source-map': 0.3.65411- acorn: 8.12.15412- commander: 2.20.35413- source-map-support: 0.5.215414- dev: true5415-4125 /test-exclude@7.0.1:4126 resolution: {integrity: sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==}4127 engines: {node: '>=18'}4128 dependencies:142 unmodified lines4271 engines: {node: '>=14.17'}4272 hasBin: true4273 dev: true4274 5566- /typescript@5.6.0-dev.20240814:5567- resolution: {integrity: sha512-7N6qhxVbJ3E1LdEZ68/WbvZMwlXp9bErVUs2yNA7XaSVDkg+iAYPM24ba0VeGkpR105+e5gaGhAYShD274qBWQ==}5568- engines: {node: '>=14.17'}5569- hasBin: true5570- dev: true5571-4275 /unbox-primitive@1.0.2:4276 resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}4277 dependencies:4278 call-bind: 1.0.75 unmodified lines4284 /undici-types@6.18.2:4285 resolution: {integrity: sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==}4286 dev: true4287 5585- /unicode-canonical-property-names-ecmascript@2.0.0:5586- resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==}5587- engines: {node: '>=4'}5588- dev: true5589-5590- /unicode-match-property-ecmascript@2.0.0:5591- resolution: {integrity: sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==}5592- engines: {node: '>=4'}5593- dependencies:5594- unicode-canonical-property-names-ecmascript: 2.0.05595- unicode-property-aliases-ecmascript: 2.1.05596- dev: true5597-5598- /unicode-match-property-value-ecmascript@2.1.0:5599- resolution: {integrity: sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==}5600- engines: {node: '>=4'}5601- dev: true5602-5603- /unicode-property-aliases-ecmascript@2.1.0:5604- resolution: {integrity: sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==}5605- engines: {node: '>=4'}5606- dev: true5607-4288 /universalify@0.2.0:4289 resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==}4290 engines: {node: '>= 4.0.0'}4291 dev: true27 unmodified lines4319 peerDependencies:4320 react: ^16.8.0 || ^17.0.0 || ^18.0.04321 dependencies:4322 react: 19.0.0-rc.05643- dev: false4323+ dev: true4324 4325 /vite-node@2.0.5(@types/node@22.3.0):4326 resolution: {integrity: sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==}4327 engines: {node: ^18.0.0 || >=20.0.0}284 unmodified linesmodified:readme.md+2 added
358 unmodified lines359 ```360 361 ## Redux devtools362 363+Install the [Redux DevTools Chrome extension](https://chromewebstore.google.com/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd) to use the devtools middleware.364+365 ```jsx366 import { devtools } from 'zustand/middleware'367 368 // Usage with a plain action store, it will log actions as "setState"139 unmodified linesmodified:rollup.config.js+12 added-107 removed
1 const path = require('path')2 const alias = require('@rollup/plugin-alias')3-const babelPlugin = require('@rollup/plugin-babel')3 const resolve = require('@rollup/plugin-node-resolve')4 const replace = require('@rollup/plugin-replace')6-const terser = require('@rollup/plugin-terser')5 const typescript = require('@rollup/plugin-typescript')6 const { default: esbuild } = require('rollup-plugin-esbuild')9-const createBabelConfig = require('./babel.config.js')7 8 const extensions = ['.js', '.ts', '.tsx']9 const { root } = path.parse(process.cwd())13-const entries = [{ find: /.*\/vanilla\.ts$/, replacement: 'zustand/vanilla' }]10+const entries = [11+ { find: /.*\/vanilla\/shallow\.ts$/, replacement: 'zustand/vanilla/shallow' },12+ { find: /.*\/react\/shallow\.ts$/, replacement: 'zustand/react/shallow' },13+ { find: /.*\/vanilla\.ts$/, replacement: 'zustand/vanilla' },14+ { find: /.*\/react\.ts$/, replacement: 'zustand/react' },15+]16 17 function external(id) {18 return !id.startsWith('.') && !id.startsWith(root)19 }20 19-function getBabelOptions(targets) {20- return {21- ...createBabelConfig({ env: (env) => env === 'build' }, targets),22- extensions,23- comments: false,24- babelHelpers: 'bundled',25- }26-}27-28-function getEsbuild(env = 'development') {21+function getEsbuild() {22 return esbuild({30- minify: env === 'production',23 target: 'es2018',24 supported: { 'import-meta': true },25 tsconfig: path.resolve('./tsconfig.json'),26 })32 unmodified lines59 : {60 'import.meta.env?.MODE':61 '(import.meta.env ? import.meta.env.MODE : undefined)',62 }),71- // a workround for #82963+ // a workaround for #82964 'use-sync-external-store/shim/with-selector':65 'use-sync-external-store/shim/with-selector.js',66 delimiters: ['\\b', '\\b(?!(\\.|/))'],67 preventAssignment: true,2 unmodified lines70 ],71 }72 }73 82-function createCommonJSConfig(input, output, options) {74+function createCommonJSConfig(input, output) {75 return {76 input,85- output: {86- file: `${output}.js`,87- format: 'cjs',88- esModule: false,89- outro: options.addModuleExport90- ? [91- `module.exports = ${options.addModuleExport.default};`,92- ...Object.entries(options.addModuleExport)93- .filter(([key]) => key !== 'default')94- .map(([key, value]) => `module.exports.${key} = ${value};`),95- `exports.default = module.exports;`,96- ].join('\n')97- : '',98- },77+ output: { file: output, format: 'cjs' },78 external,79 plugins: [80 alias({ entries: entries.filter((e) => !e.find.test(input)) }),81 resolve({ extensions }),1 unmodified line83 'import.meta.env?.MODE': 'process.env.NODE_ENV',84 delimiters: ['\\b', '\\b(?!(\\.|/))'],85 preventAssignment: true,86 }),108- babelPlugin(getBabelOptions({ ie: 11 })),87+ getEsbuild(),88 ],89 }90 }91 113-function createUMDConfig(input, output, env) {114- let name = 'zustand'115- const fileName = output.slice('dist/umd/'.length)116- const capitalize = (s) => s.slice(0, 1).toUpperCase() + s.slice(1)117- if (fileName !== 'index') {118- name += fileName.replace(/(\w+)\W*/g, (_, p) => capitalize(p))119- }120- return {121- input,122- output: {123- file: `${output}.${env}.js`,124- format: 'umd',125- name,126- globals: {127- react: 'React',128- immer: 'immer',129- // FIXME not yet supported130- 'use-sync-external-store/shim/with-selector':131- 'useSyncExternalStoreShimWithSelector',132- 'zustand/vanilla': 'zustandVanilla',133- },134- },135- external,136- plugins: [137- alias({ entries: entries.filter((e) => !e.find.test(input)) }),138- resolve({ extensions }),139- replace({140- 'import.meta.env?.MODE': JSON.stringify(env),141- delimiters: ['\\b', '\\b(?!(\\.|/))'],142- preventAssignment: true,143- }),144- babelPlugin(getBabelOptions({ ie: 11 })),145- ...(env === 'production' ? [terser()] : []),146- ],147- }148-}149-150-function createSystemConfig(input, output, env) {151- return {152- input,153- output: {154- file: `${output}.${env}.js`,155- format: 'system',156- },157- external,158- plugins: [159- alias({ entries: entries.filter((e) => !e.find.test(input)) }),160- resolve({ extensions }),161- replace({162- 'import.meta.env?.MODE': JSON.stringify(env),163- delimiters: ['\\b', '\\b(?!(\\.|/))'],164- preventAssignment: true,165- }),166- getEsbuild(env),167- ],168- }169-}170-92 module.exports = function (args) {93 let c = Object.keys(args).find((key) => key.startsWith('config-'))94 if (c) {95 c = c.slice('config-'.length).replace(/_/g, '/')1 unmodified line97 c = 'index'98 }99 return [100 ...(c === 'index' ? [createDeclarationConfig(`src/${c}.ts`, 'dist')] : []),180- createCommonJSConfig(`src/${c}.ts`, `dist/${c}`, {181- addModuleExport: {182- index: {183- default: 'react',184- create: 'create',185- useStore: 'useStore',186- createStore: 'vanilla.createStore',187- },188- vanilla: { default: 'vanilla', createStore: 'createStore' },189- shallow: { default: 'shallow', shallow: 'shallow$1' },190- }[c],191- }),192- createESMConfig(`src/${c}.ts`, `dist/esm/${c}.js`),101+ createCommonJSConfig(`src/${c}.ts`, `dist/${c}.js`),102 createESMConfig(`src/${c}.ts`, `dist/esm/${c}.mjs`),194- createUMDConfig(`src/${c}.ts`, `dist/umd/${c}`, 'development'),195- createUMDConfig(`src/${c}.ts`, `dist/umd/${c}`, 'production'),196- createSystemConfig(`src/${c}.ts`, `dist/system/${c}`, 'development'),197- createSystemConfig(`src/${c}.ts`, `dist/system/${c}`, 'production'),103 ]104 }105 106 module.exports.entries = []