@warp-drive-mirror/tc39-proposal-signals 5.8.0-alpha.4 → 5.8.0-alpha.40
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/README.md +106 -0
- package/dist/unpkg/dev/install.js +23 -0
- package/dist/unpkg/dev-deprecated/install.js +23 -0
- package/dist/unpkg/prod/install.js +23 -0
- package/dist/unpkg/prod-deprecated/install.js +23 -0
- package/logos/README.md +4 -0
- package/logos/github-header.svg +444 -0
- package/logos/logo-yellow-slab.svg +1 -0
- package/logos/word-mark-black.svg +1 -0
- package/logos/word-mark-white.svg +1 -0
- package/package.json +9 -4
package/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img
|
|
3
|
+
class="project-logo"
|
|
4
|
+
src="./logos/logo-yellow-slab.svg"
|
|
5
|
+
alt="WarpDrive"
|
|
6
|
+
width="180px"
|
|
7
|
+
title="WarpDrive"
|
|
8
|
+
/>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+
[](https://discord.gg/zT3asNS
|
|
15
|
+
)
|
|
16
|
+
[](https://discord.gg/PHBbnWJx5S
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
<h3 align="center">Signals Integration for using <em>Warp</em><strong>Drive</strong> with 🚦 <strong style="color: orange">TC39 Proposal Signals</strong></h3>
|
|
20
|
+
|
|
21
|
+
***Warp*Drive** makes it easy to build scalable, fast, feature
|
|
22
|
+
rich applications — letting you ship better experiences more quickly without re-architecting your app or API. ***Warp*Drive** is:
|
|
23
|
+
|
|
24
|
+
- 🌌 Seamless Reactivity in any Framework
|
|
25
|
+
- ⚡️ Committed to Best-In-Class Performance
|
|
26
|
+
- 💚 Typed
|
|
27
|
+
- ⚛️ Works with any API
|
|
28
|
+
- 🌲 Focused on being as tiny as possible
|
|
29
|
+
- 🚀 SSR Ready
|
|
30
|
+
- 🐹 Built with ♥️ by [Ember](https://emberjs.com)
|
|
31
|
+
|
|
32
|
+
<br>
|
|
33
|
+
<br>
|
|
34
|
+
|
|
35
|
+
**Get Started* → [Guides](https://warp-drive.io/guides/)
|
|
36
|
+
|
|
37
|
+
<br>
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
<br>
|
|
42
|
+
|
|
43
|
+
# @warp-drive-mirror/tc39-proposal-signals
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### ♥️ Credits
|
|
49
|
+
|
|
50
|
+
<details>
|
|
51
|
+
<summary>Brought to you with ♥️ love by <a href="https://emberjs.com" title="EmberJS">🐹 Ember</a></summary>
|
|
52
|
+
|
|
53
|
+
<style type="text/css">
|
|
54
|
+
img.project-logo {
|
|
55
|
+
padding: 0 5em 1em 5em;
|
|
56
|
+
width: 100px;
|
|
57
|
+
border-bottom: 2px solid #bbb;
|
|
58
|
+
margin: 0 auto;
|
|
59
|
+
display: block;
|
|
60
|
+
}
|
|
61
|
+
details > summary {
|
|
62
|
+
font-size: 1.1rem;
|
|
63
|
+
line-height: 1rem;
|
|
64
|
+
margin-bottom: 1rem;
|
|
65
|
+
}
|
|
66
|
+
details {
|
|
67
|
+
font-size: 1rem;
|
|
68
|
+
}
|
|
69
|
+
details > summary strong {
|
|
70
|
+
display: inline-block;
|
|
71
|
+
padding: .2rem 0;
|
|
72
|
+
color: #000;
|
|
73
|
+
border-bottom: 3px solid #bbb;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
details > details {
|
|
77
|
+
margin-left: 2rem;
|
|
78
|
+
}
|
|
79
|
+
details > details > summary {
|
|
80
|
+
font-size: 1rem;
|
|
81
|
+
line-height: 1rem;
|
|
82
|
+
margin-bottom: 1rem;
|
|
83
|
+
}
|
|
84
|
+
details > details > summary strong {
|
|
85
|
+
display: inline-block;
|
|
86
|
+
padding: .2rem 0;
|
|
87
|
+
color: #555;
|
|
88
|
+
border-bottom: 2px solid #555;
|
|
89
|
+
}
|
|
90
|
+
details > details {
|
|
91
|
+
font-size: .85rem;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media (prefers-color-scheme: dark) {
|
|
95
|
+
details > summary strong {
|
|
96
|
+
color: #fff;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
@media (prefers-color-scheme: dark) {
|
|
100
|
+
details > details > summary strong {
|
|
101
|
+
color: #afaba0;
|
|
102
|
+
border-bottom: 2px solid #afaba0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
</style>
|
|
106
|
+
</details>
|
|
@@ -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,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,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,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/logos/README.md
ADDED