@quilted/threads
Advanced tools
Comparing version 0.0.0-preview-20230803030928 to 0.0.0-preview-20230803052231
# @quilted/threads | ||
## 0.0.0-preview-20230803030928 | ||
## 0.0.0-preview-20230803052231 | ||
### Patch Changes | ||
- First major version for `@quilted/events` | ||
- Simplify thread creation and add helpers for transferring signals over threads | ||
- Updated dependencies []: | ||
- @quilted/events@0.0.0-preview-20230803052231 | ||
## 0.1.16 | ||
@@ -13,4 +18,9 @@ | ||
- [#587](https://github.com/lemonmade/quilt/pull/587) [`1180dde2`](https://github.com/lemonmade/quilt/commit/1180dde278793006b8ae153804130cad6dab36c2) Thanks [@lemonmade](https://github.com/lemonmade)! - First major version for `@quilted/events` | ||
- [`e45f766b`](https://github.com/lemonmade/quilt/commit/e45f766bce9e8632fe17d9e9c2e3d446d0783feb) Thanks [@lemonmade](https://github.com/lemonmade)! - Simplify thread creation and add helpers for transferring signals over threads | ||
- Updated dependencies [[`1180dde2`](https://github.com/lemonmade/quilt/commit/1180dde278793006b8ae153804130cad6dab36c2)]: | ||
- @quilted/events@1.0.0 | ||
## 0.1.15 | ||
@@ -17,0 +27,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"type": "module", | ||
"version": "0.0.0-preview-20230803030928", | ||
"version": "0.0.0-preview-20230803052231", | ||
"license": "MIT", | ||
@@ -46,3 +46,3 @@ "engines": { | ||
"dependencies": { | ||
"@quilted/events": "^0.1.0" | ||
"@quilted/events": "0.0.0-preview-20230803052231" | ||
}, | ||
@@ -49,0 +49,0 @@ "peerDependencies": { |
import {type Signal} from '@preact/signals-core'; | ||
import {anyAbortSignal} from '@quilted/events'; | ||
import {NestedAbortController} from '@quilted/events'; | ||
@@ -38,3 +38,3 @@ import {retain, release} from '../memory.ts'; | ||
abortSignal && teardownAbortSignal | ||
? anyAbortSignal(abortSignal, teardownAbortSignal) | ||
? new NestedAbortController(abortSignal, teardownAbortSignal).signal | ||
: abortSignal ?? teardownAbortSignal; | ||
@@ -41,0 +41,0 @@ |
import {type Signal} from '@preact/signals-core'; | ||
import {createEmitter} from '@quilted/events'; | ||
import {EventEmitter} from '@quilted/events'; | ||
@@ -8,3 +8,3 @@ export function signalToIterator<T>( | ||
) { | ||
const emitter = createEmitter<{value: T}>(); | ||
const emitter = new EventEmitter<{value: T}>(); | ||
@@ -11,0 +11,0 @@ const unsubscribe = signal.subscribe((value) => { |
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
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
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
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
206515
+ Added@quilted/events@0.0.0-preview-20230803052231(transitive)
- Removed@quilted/events@0.1.18(transitive)