@warp-drive-mirror/tc39-proposal-signals 5.8.0-alpha.30 → 5.8.0-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/unpkg/dev/declarations/install.d.ts +6 -0
- package/dist/unpkg/dev/install.js +23 -0
- package/dist/unpkg/dev-deprecated/declarations/install.d.ts +6 -0
- package/dist/unpkg/dev-deprecated/install.js +23 -0
- package/dist/unpkg/prod/declarations/install.d.ts +6 -0
- package/dist/unpkg/prod/install.js +23 -0
- package/dist/unpkg/prod-deprecated/declarations/install.d.ts +6 -0
- package/dist/unpkg/prod-deprecated/install.js +23 -0
- package/package.json +4 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Uses: https://github.com/proposal-signals/signal-polyfill
|
|
3
|
+
*/
|
|
4
|
+
import { Signal } from "signal-polyfill";
|
|
5
|
+
import { type HooksOptions, type SignalHooks } from "@warp-drive-mirror/core/configure";
|
|
6
|
+
export declare function buildSignalConfig(_options: HooksOptions): SignalHooks<Signal.State<unknown>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Signal } from 'signal-polyfill';
|
|
2
|
+
import { setupSignals } from '@warp-drive-mirror/core/configure';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Uses: https://github.com/proposal-signals/signal-polyfill
|
|
6
|
+
*/
|
|
7
|
+
function buildSignalConfig(_options) {
|
|
8
|
+
return {
|
|
9
|
+
createSignal: (obj, key) => new Signal.State(null, {
|
|
10
|
+
equals: () => false
|
|
11
|
+
}),
|
|
12
|
+
consumeSignal: signal => void signal.get(),
|
|
13
|
+
notifySignal: signal => signal.set(1),
|
|
14
|
+
createMemo: (object, key, fn) => {
|
|
15
|
+
const memo = new Signal.Computed(fn);
|
|
16
|
+
return () => memo.get();
|
|
17
|
+
},
|
|
18
|
+
willSyncFlushWatchers: () => false
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
setupSignals(buildSignalConfig);
|
|
22
|
+
|
|
23
|
+
export { buildSignalConfig };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Uses: https://github.com/proposal-signals/signal-polyfill
|
|
3
|
+
*/
|
|
4
|
+
import { Signal } from "signal-polyfill";
|
|
5
|
+
import { type HooksOptions, type SignalHooks } from "@warp-drive-mirror/core/configure";
|
|
6
|
+
export declare function buildSignalConfig(_options: HooksOptions): SignalHooks<Signal.State<unknown>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Signal } from 'signal-polyfill';
|
|
2
|
+
import { setupSignals } from '@warp-drive-mirror/core/configure';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Uses: https://github.com/proposal-signals/signal-polyfill
|
|
6
|
+
*/
|
|
7
|
+
function buildSignalConfig(_options) {
|
|
8
|
+
return {
|
|
9
|
+
createSignal: (obj, key) => new Signal.State(null, {
|
|
10
|
+
equals: () => false
|
|
11
|
+
}),
|
|
12
|
+
consumeSignal: signal => void signal.get(),
|
|
13
|
+
notifySignal: signal => signal.set(1),
|
|
14
|
+
createMemo: (object, key, fn) => {
|
|
15
|
+
const memo = new Signal.Computed(fn);
|
|
16
|
+
return () => memo.get();
|
|
17
|
+
},
|
|
18
|
+
willSyncFlushWatchers: () => false
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
setupSignals(buildSignalConfig);
|
|
22
|
+
|
|
23
|
+
export { buildSignalConfig };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Uses: https://github.com/proposal-signals/signal-polyfill
|
|
3
|
+
*/
|
|
4
|
+
import { Signal } from "signal-polyfill";
|
|
5
|
+
import { type HooksOptions, type SignalHooks } from "@warp-drive-mirror/core/configure";
|
|
6
|
+
export declare function buildSignalConfig(_options: HooksOptions): SignalHooks<Signal.State<unknown>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Signal } from 'signal-polyfill';
|
|
2
|
+
import { setupSignals } from '@warp-drive-mirror/core/configure';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Uses: https://github.com/proposal-signals/signal-polyfill
|
|
6
|
+
*/
|
|
7
|
+
function buildSignalConfig(_options) {
|
|
8
|
+
return {
|
|
9
|
+
createSignal: (obj, key) => new Signal.State(null, {
|
|
10
|
+
equals: () => false
|
|
11
|
+
}),
|
|
12
|
+
consumeSignal: signal => void signal.get(),
|
|
13
|
+
notifySignal: signal => signal.set(1),
|
|
14
|
+
createMemo: (object, key, fn) => {
|
|
15
|
+
const memo = new Signal.Computed(fn);
|
|
16
|
+
return () => memo.get();
|
|
17
|
+
},
|
|
18
|
+
willSyncFlushWatchers: () => false
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
setupSignals(buildSignalConfig);
|
|
22
|
+
|
|
23
|
+
export { buildSignalConfig };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Uses: https://github.com/proposal-signals/signal-polyfill
|
|
3
|
+
*/
|
|
4
|
+
import { Signal } from "signal-polyfill";
|
|
5
|
+
import { type HooksOptions, type SignalHooks } from "@warp-drive-mirror/core/configure";
|
|
6
|
+
export declare function buildSignalConfig(_options: HooksOptions): SignalHooks<Signal.State<unknown>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Signal } from 'signal-polyfill';
|
|
2
|
+
import { setupSignals } from '@warp-drive-mirror/core/configure';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Uses: https://github.com/proposal-signals/signal-polyfill
|
|
6
|
+
*/
|
|
7
|
+
function buildSignalConfig(_options) {
|
|
8
|
+
return {
|
|
9
|
+
createSignal: (obj, key) => new Signal.State(null, {
|
|
10
|
+
equals: () => false
|
|
11
|
+
}),
|
|
12
|
+
consumeSignal: signal => void signal.get(),
|
|
13
|
+
notifySignal: signal => signal.set(1),
|
|
14
|
+
createMemo: (object, key, fn) => {
|
|
15
|
+
const memo = new Signal.Computed(fn);
|
|
16
|
+
return () => memo.get();
|
|
17
|
+
},
|
|
18
|
+
willSyncFlushWatchers: () => false
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
setupSignals(buildSignalConfig);
|
|
22
|
+
|
|
23
|
+
export { buildSignalConfig };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive-mirror/tc39-proposal-signals",
|
|
3
3
|
"description": "Data bindings and utilities for the prototype TC39 Signals implementation",
|
|
4
|
-
"version": "5.8.0-alpha.
|
|
4
|
+
"version": "5.8.0-alpha.32",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
7
7
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"peerDependencies": {},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"signal-polyfill": "0.2.2",
|
|
32
|
-
"@warp-drive-mirror/core": "5.8.0-alpha.
|
|
32
|
+
"@warp-drive-mirror/core": "5.8.0-alpha.32"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {},
|
|
35
35
|
"devDependencies": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@babel/preset-env": "^7.28.3",
|
|
39
39
|
"@babel/preset-typescript": "^7.27.1",
|
|
40
40
|
"@babel/runtime": "^7.28.3",
|
|
41
|
-
"@warp-drive/internal-config": "5.8.0-alpha.
|
|
42
|
-
"@warp-drive-mirror/core": "5.8.0-alpha.
|
|
41
|
+
"@warp-drive/internal-config": "5.8.0-alpha.32",
|
|
42
|
+
"@warp-drive-mirror/core": "5.8.0-alpha.32",
|
|
43
43
|
"rollup": "^4.48.0",
|
|
44
44
|
"typescript": "^5.9.2",
|
|
45
45
|
"vite": "^7.1.3"
|