@preact-signals/utils
Advanced tools
Comparing version 0.1.0 to 0.2.0
# @preact-signals/utils | ||
## 0.2.0 | ||
### Minor Changes | ||
- 8f3b9c5: Added `toggleSignal` utility for inverting boolean signal value | ||
- 28d5595: Started using `@preact-signals/unified-signals` | ||
- 9dd35ab: Moved all packages to utils package | ||
- f4040ee: Added untracked tests and untracked fixes | ||
- 81065a5: Added reactive hocs | ||
- 14256ad: Added ReadonlyFlatStore | ||
- c2bd0e6: Renamed store to flat store | ||
### Patch Changes | ||
- 4103d44: Polyfills created as package and utils was moves to `@preact-signals/utils` | ||
- Updated dependencies [89badcb] | ||
- Updated dependencies [1f96c91] | ||
- Updated dependencies [4103d44] | ||
- Updated dependencies [55cfc73] | ||
- @preact-signals/polyfills@0.2.0 | ||
## 0.1.0 | ||
@@ -4,0 +25,0 @@ |
@@ -1,4 +0,2 @@ | ||
export * from "./explicitFalsy"; | ||
export * from "./setter"; | ||
export * from "./type"; | ||
export * from "./untracked"; | ||
export * from "./$"; | ||
export * from "./utils"; |
@@ -17,6 +17,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./explicitFalsy"), exports); | ||
__exportStar(require("./setter"), exports); | ||
__exportStar(require("./type"), exports); | ||
__exportStar(require("./untracked"), exports); | ||
__exportStar(require("./$"), exports); | ||
__exportStar(require("./utils"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,2 @@ | ||
export * from "./explicitFalsy"; | ||
export * from "./setter"; | ||
export * from "./type"; | ||
export * from "./untracked"; | ||
export * from "./$"; | ||
export * from "./utils"; |
@@ -1,5 +0,3 @@ | ||
export * from "./explicitFalsy"; | ||
export * from "./setter"; | ||
export * from "./type"; | ||
export * from "./untracked"; | ||
export * from "./$"; | ||
export * from "./utils"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@preact-signals/utils", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"private": false, | ||
@@ -29,13 +29,41 @@ "publishConfig": { | ||
"import": "./dist/esm/index.js", | ||
"react-native": "./src/index.ts", | ||
"main": "./dist/cjs/index.js" | ||
}, | ||
"./hooks": { | ||
"types": "./dist/esm/hooks/index.d.ts", | ||
"import": "./dist/esm/hooks/index.js", | ||
"react-native": "./src/hooks/index.ts", | ||
"main": "./dist/cjs/hooks/index.js" | ||
}, | ||
"./flat-store": { | ||
"types": "./dist/esm/flat-store/index.d.ts", | ||
"react-native": "./src/flat-store/index.ts", | ||
"import": "./dist/esm/flat-store/index.js", | ||
"main": "./dist/cjs/flat-store/index.js" | ||
}, | ||
"./components": { | ||
"react-native": "./src/components/index.ts", | ||
"types": "./dist/esm/components/index.d.ts", | ||
"import": "./dist/esm/components/index.js", | ||
"main": "./dist/cjs/components/index.js" | ||
}, | ||
"./resource": { | ||
"react-native": "./src/resource/index.ts", | ||
"types": "./dist/esm/resource/index.d.ts", | ||
"import": "./dist/esm/resource/index.js", | ||
"main": "./dist/cjs/resource/index.js" | ||
}, | ||
"./hoc": { | ||
"react-native": "./src/hoc.ts", | ||
"types": "./dist/esm/hoc.d.ts", | ||
"import": "./dist/esm/hoc.js", | ||
"main": "./dist/cjs/hoc.js" | ||
} | ||
}, | ||
"peerDependencies": { | ||
"@preact/signals-core": ">=1.2.0", | ||
"react": "17.*.* || 18.*.*" | ||
"react": "17.*.* || 18.*.*", | ||
"@preact/signals-react": ">=1.2" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@preact/signals-core": { | ||
"optional": true | ||
}, | ||
"react": { | ||
@@ -45,2 +73,7 @@ "optional": true | ||
}, | ||
"dependencies": { | ||
"react-fast-hoc": "^0.1", | ||
"@preact-signals/polyfills": "0.2.0", | ||
"@preact-signals/unified-signals": "0.1.0" | ||
}, | ||
"devDependencies": { | ||
@@ -50,2 +83,6 @@ "@types/react": "^18", | ||
"concurrently": "^8.2.0", | ||
"happy-dom": "^10.5.2", | ||
"hotscript": "^1.0.13", | ||
"react": "^18", | ||
"react-dom": "^18", | ||
"type-fest": "^3.12.0" | ||
@@ -59,2 +96,3 @@ }, | ||
"build:cjs": "tsc --module commonjs --outDir ./dist/cjs", | ||
"test": "vitest", | ||
"lint": "tsc --noEmit", | ||
@@ -61,0 +99,0 @@ "watch": "concurrently \"pnpm build:esm -w\" \"pnpm build:cjs -w\"", |
@@ -1,5 +0,3 @@ | ||
export * from "./explicitFalsy"; | ||
export * from "./setter"; | ||
export * from "./type"; | ||
export * from "./untracked"; | ||
export * from "./$"; | ||
export * from "./utils"; | ||
@@ -5,9 +5,23 @@ { | ||
"noEmit": false, | ||
"outDir": "./dist", | ||
"outDir": "./dist/esm", | ||
"emitDeclarationOnly": false, | ||
"sourceMap": true | ||
"sourceMap": true, | ||
"tsBuildInfoFile": "./dist/.tsbuildinfo" | ||
}, | ||
"exclude": [ | ||
"**/dist/**", | ||
"**/node_modules/**", | ||
"vitest.config.ts", | ||
"**/*.test.*" | ||
], | ||
"extends": "../../tsconfig.json", | ||
"include": ["src"], | ||
"exclude": ["**/node_modules"] | ||
"references": [ | ||
{ | ||
"path": "../polyfills" | ||
}, | ||
{ "path": "../unified-signals" }, | ||
{ | ||
"path": "./tsconfig.node.json" | ||
} | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
306760
240
4949
5
8
6
1
+ Addedreact-fast-hoc@^0.1
+ Added@preact-signals/unified-signals@0.1.0(transitive)
+ Added@preact/signals-react@2.2.0(transitive)
+ Addedhotscript@1.0.13(transitive)
+ Addedreact-fast-hoc@0.1.7(transitive)
+ Addeduse-sync-external-store@1.2.2(transitive)