+0
-2
@@ -1247,3 +1247,2 @@ 'use strict'; | ||
| * @classdesc The public base class can connect to the store | ||
| * @implements ConnectStoreType | ||
| */ | ||
@@ -1272,3 +1271,2 @@ var ComponentWithStore = /*#__PURE__*/function (_Component) { | ||
| * @classdesc The public base class can connect to the store | ||
| * @implements ConnectStoreType | ||
| */ | ||
@@ -1275,0 +1273,0 @@ _defineProperty(ComponentWithStore, "displayName", undefined); |
+3
-19
@@ -5,3 +5,3 @@ /** | ||
| * created by liushanbao <1262300490@qq.com> | ||
| * (c) 2020-05-05-2024-8-31 | ||
| * (c) 2020-05-05-2024-10-14 | ||
| * Released under the MIT License. | ||
@@ -54,16 +54,2 @@ */ | ||
| /** | ||
| * @description This is an important method that is core to the functionality of this class. | ||
| * Performs some action. This method should not be overridden in subclasses. | ||
| * Even if you rewrite it, your rewriting method should be like this below: | ||
| * connectStore<S extends PrimitiveState>(store: S): S & SetOptions & StoreCoreUtils<S> { | ||
| * ... | ||
| * return super.connectStore(store); | ||
| * } | ||
| * @interface connectStore | ||
| * @param store | ||
| */ | ||
| type ConnectStoreType = Readonly<{ | ||
| connectStore<S extends PrimitiveState>(store: Store<S> | ConciseStoreCore<S>): ClassStoreType<S>; | ||
| }>; | ||
| /** This is the data type returned by the class after connecting to the store */ | ||
@@ -254,3 +240,2 @@ type ClassStoreType<S extends PrimitiveState> = S & StoreCoreUtils<S> & Readonly<SetOptions>; | ||
| * @classdesc The public base class can connect to the store | ||
| * @implements ConnectStoreType | ||
| */ | ||
@@ -268,5 +253,4 @@ declare class ComponentWithStore<P extends PrimitiveState = {}, S extends PrimitiveState = {}, SS = any> extends Component<P, S, SS> { | ||
| * @classdesc The public base class can connect to the store | ||
| * @implements ConnectStoreType | ||
| */ | ||
| declare class PureComponentWithStore<P extends PrimitiveState = {}, S extends PrimitiveState = {}, SS = any> extends PureComponent<P, S, SS> implements ConnectStoreType { | ||
| declare class PureComponentWithStore<P extends PrimitiveState = {}, S extends PrimitiveState = {}, SS = any> extends PureComponent<P, S, SS> { | ||
| constructor(props: P); | ||
@@ -280,2 +264,2 @@ static displayName: undefined | string; | ||
| export { type AnyFn, type Callback, type ClassStoreType, type ComplexValueType, ComponentWithStore, type ConciseStore, type ConciseStoreCore, type ConciseStoreHeart, type ConnectStoreType, type InitialState, type InitialStateForbiddenKeys, type InitialStore, type ListenerParams, type ListenerType, type MapType, type NativeDataType, type PrimateForbiddenType, type PrimitiveState, type PrimitiveValueType, PureComponentWithStore, type Restore, type SetOptions, type SetState, type SetStateAction, type State, type StateCallback, type StateFnType, type StateWithThisType, type Store, type StoreCoreUtils, type StoreHookUtils, type StoreOptions, type StoreUtils, type Subscribe, type SubscriptionRefType, type SyncUpdate, type Unsubscribe, type UseStore, type ValueOf, createStore, useConciseState, useStore, useSubscription }; | ||
| export { type AnyFn, type Callback, type ClassStoreType, type ComplexValueType, ComponentWithStore, type ConciseStore, type ConciseStoreCore, type ConciseStoreHeart, type InitialState, type InitialStateForbiddenKeys, type InitialStore, type ListenerParams, type ListenerType, type MapType, type NativeDataType, type PrimateForbiddenType, type PrimitiveState, type PrimitiveValueType, PureComponentWithStore, type Restore, type SetOptions, type SetState, type SetStateAction, type State, type StateCallback, type StateFnType, type StateWithThisType, type Store, type StoreCoreUtils, type StoreHookUtils, type StoreOptions, type StoreUtils, type Subscribe, type SubscriptionRefType, type SyncUpdate, type Unsubscribe, type UseStore, type ValueOf, createStore, useConciseState, useStore, useSubscription }; |
+0
-2
@@ -1245,3 +1245,2 @@ import ReactPlatformExports from './platform.esm'; | ||
| * @classdesc The public base class can connect to the store | ||
| * @implements ConnectStoreType | ||
| */ | ||
@@ -1270,3 +1269,2 @@ var ComponentWithStore = /*#__PURE__*/function (_Component) { | ||
| * @classdesc The public base class can connect to the store | ||
| * @implements ConnectStoreType | ||
| */ | ||
@@ -1273,0 +1271,0 @@ _defineProperty(ComponentWithStore, "displayName", undefined); |
+12
-14
| { | ||
| "name": "resy", | ||
| "version": "11.0.3-beta.1", | ||
| "version": "11.0.3", | ||
| "description": "React State Easy", | ||
@@ -36,10 +36,2 @@ "repository": "https://github.com/lsbFlying/resy.git", | ||
| }, | ||
| "scripts": { | ||
| "start": "vite", | ||
| "dev": "vite", | ||
| "test": "vitest run --coverage", | ||
| "test:dev": "rm -rf coverage && vitest --ui --coverage", | ||
| "build": "rm -rf dist && rollup -c --configPlugin @rollup/plugin-typescript", | ||
| "prepublishOnly": "rm -rf dist coverage && npm test && npm run build" | ||
| }, | ||
| "publishConfig": { | ||
@@ -83,7 +75,7 @@ "registry": "https://registry.npmjs.org/" | ||
| "react-native": "^0.74.3", | ||
| "rollup": "^4.19.1", | ||
| "rollup": "^4.24.0", | ||
| "rollup-plugin-auto-external": "^2.0.0", | ||
| "rollup-plugin-dts": "^6.1.1", | ||
| "typescript": "^5.5.4", | ||
| "vite": "^5.3.5", | ||
| "vite": "^5.4.8", | ||
| "vitest": "^2.0.4" | ||
@@ -94,3 +86,2 @@ }, | ||
| }, | ||
| "packageManager": "pnpm@8.0.0", | ||
| "eslintIgnore": [ | ||
@@ -118,3 +109,10 @@ "dist" | ||
| "management" | ||
| ] | ||
| } | ||
| ], | ||
| "scripts": { | ||
| "start": "vite", | ||
| "dev": "vite", | ||
| "test": "vitest run --coverage", | ||
| "test:dev": "rm -rf coverage && vitest --ui --coverage", | ||
| "build": "rm -rf dist && rollup -c --configPlugin @rollup/plugin-typescript" | ||
| } | ||
| } |
+2
-2
@@ -351,6 +351,6 @@ <div align="center"> | ||
| <span>{theme}</span> | ||
| <button onClick={() => { this.userStore.userName = "LD" }}> | ||
| <button onClick={() => { userStore.userName = "LD" }}> | ||
| nameChange | ||
| </button> | ||
| <button onClick={() => { this.themeStore.setState({ theme: "light" }) }}> | ||
| <button onClick={() => { themeStore.setState({ theme: "light" }) }}> | ||
| themeChange | ||
@@ -357,0 +357,0 @@ </button> |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
2
-33.33%0
-100%193189
-0.49%2984
-0.67%