Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@preact-signals/utils

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@preact-signals/utils - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

dist/.tsbuildinfo

21

CHANGELOG.md
# @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 @@

6

dist/cjs/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc