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

@quilted/threads

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quilted/threads - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

build/typescript/encoding.d.ts

4

build/typescript/encoding/basic.d.ts

@@ -1,3 +0,3 @@

import type { ThreadEncodingStrategy, ThreadEncodingStrategyApi } from '../types';
import { type MemoryRetainer } from '../memory';
import type { ThreadEncodingStrategy, ThreadEncodingStrategyApi } from '../types.ts';
import { type MemoryRetainer } from '../memory.ts';
export declare function createBasicEncoderWithOverrides({ encode: encodeOverride, decode: decodeOverride, }?: {

@@ -4,0 +4,0 @@ encode?(value: unknown, api: ThreadEncodingStrategyApi & Pick<ThreadEncodingStrategy, 'encode'>): ReturnType<ThreadEncodingStrategy['encode']> | undefined;

@@ -1,11 +0,11 @@

export { createThread } from './thread';
export type { ThreadOptions } from './thread';
export { retain, release, StackFrame, isMemoryManageable } from './memory';
export type { MemoryManageable, MemoryRetainer } from './memory';
export { RELEASE_METHOD, RETAIN_METHOD, RETAINED_BY, ENCODE_METHOD, } from './constants';
export { targetFromIframe, targetFromInsideIframe, targetFromWebWorker, targetFromMessagePort, targetFromBrowserWebSocket, } from './targets';
export { createBasicEncoder, createBasicEncoderWithOverrides } from './encoding';
export { createThreadAbortSignal, acceptThreadAbortSignal } from './abort';
export type { ThreadAbortSignal } from './abort';
export type { Thread, ThreadTarget, ThreadCallable, ThreadExposable, ThreadSafeArgument, ThreadSafeReturnType, ThreadEncodingStrategy, ThreadEncodingStrategyApi, ThreadEncodable, AnyFunction, } from './types';
export { createThread } from './thread.ts';
export type { ThreadOptions } from './thread.ts';
export { retain, release, StackFrame, isMemoryManageable } from './memory.ts';
export type { MemoryManageable, MemoryRetainer } from './memory.ts';
export { RELEASE_METHOD, RETAIN_METHOD, RETAINED_BY, ENCODE_METHOD, } from './constants.ts';
export { targetFromIframe, targetFromInsideIframe, targetFromWebWorker, targetFromMessagePort, targetFromBrowserWebSocket, } from './targets.ts';
export { createBasicEncoder, createBasicEncoderWithOverrides, } from './encoding.ts';
export { createThreadAbortSignal, acceptThreadAbortSignal } from './abort.ts';
export type { ThreadAbortSignal } from './abort.ts';
export type { Thread, ThreadTarget, ThreadCallable, ThreadExposable, ThreadSafeArgument, ThreadSafeReturnType, ThreadEncodingStrategy, ThreadEncodingStrategyApi, ThreadEncodable, AnyFunction, } from './types.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

import { RETAINED_BY, RETAIN_METHOD, RELEASE_METHOD } from './constants';
import type { MemoryRetainer, MemoryManageable } from './types';
import { RETAINED_BY, RETAIN_METHOD, RELEASE_METHOD } from './constants.ts';
import type { MemoryRetainer, MemoryManageable } from './types.ts';
export { RETAINED_BY, RETAIN_METHOD, RELEASE_METHOD };

@@ -4,0 +4,0 @@ export type { MemoryRetainer, MemoryManageable };

@@ -1,2 +0,2 @@

import type { ThreadTarget } from '../../types';
import type { ThreadTarget } from '../../types.ts';
export declare function targetFromIframe(iframe: HTMLIFrameElement, { targetOrigin }?: {

@@ -3,0 +3,0 @@ targetOrigin?: string;

@@ -1,2 +0,2 @@

import type { ThreadTarget } from '../../types';
import type { ThreadTarget } from '../../types.ts';
export declare function targetFromInsideIframe({ targetOrigin, }?: {

@@ -3,0 +3,0 @@ targetOrigin?: string;

@@ -1,3 +0,3 @@

import type { ThreadTarget } from '../types';
import type { ThreadTarget } from '../types.ts';
export declare function targetFromMessagePort(port: MessagePort): ThreadTarget;
//# sourceMappingURL=message-port.d.ts.map

@@ -1,3 +0,3 @@

import type { ThreadTarget } from '../types';
import type { ThreadTarget } from '../types.ts';
export declare function targetFromBrowserWebSocket(websocket: WebSocket): ThreadTarget;
//# sourceMappingURL=web-socket-browser.d.ts.map

@@ -1,3 +0,3 @@

import type { ThreadTarget } from '../types';
import type { ThreadTarget } from '../types.ts';
export declare function targetFromWebWorker(worker: Worker): ThreadTarget;
//# sourceMappingURL=web-worker.d.ts.map

@@ -1,2 +0,2 @@

import type { Thread, ThreadTarget, ThreadExposable, ThreadEncodingStrategy, ThreadEncodingStrategyApi } from './types';
import type { Thread, ThreadTarget, ThreadExposable, ThreadEncodingStrategy, ThreadEncodingStrategyApi } from './types.ts';
export interface ThreadOptions<Self = Record<string, never>, Target = Record<string, never>> {

@@ -3,0 +3,0 @@ callable?: (keyof Target)[];

@@ -1,2 +0,2 @@

import type { RELEASE_METHOD, RETAIN_METHOD, ENCODE_METHOD, RETAINED_BY } from './constants';
import type { RELEASE_METHOD, RETAIN_METHOD, ENCODE_METHOD, RETAINED_BY } from './constants.ts';
export type Thread<Target> = ThreadCallable<Target>;

@@ -3,0 +3,0 @@ export interface ThreadTarget {

# @quilted/threads
## 0.1.14
### Patch Changes
- [#536](https://github.com/lemonmade/quilt/pull/536) [`cf6e2de1`](https://github.com/lemonmade/quilt/commit/cf6e2de186d8644fad9afcedda85c05002e909e1) Thanks [@lemonmade](https://github.com/lemonmade)! - Update to TypeScript 5.0
## 0.1.13

@@ -4,0 +10,0 @@

@@ -5,3 +5,3 @@ {

"type": "module",
"version": "0.1.13",
"version": "0.1.14",
"license": "MIT",

@@ -8,0 +8,0 @@ "engines": {

@@ -1,2 +0,2 @@

import {retain, release} from './memory';
import {retain, release} from './memory.ts';

@@ -3,0 +3,0 @@ export type ThreadAbortSignal =

@@ -6,3 +6,3 @@ import {

RELEASE_METHOD,
} from '../constants';
} from '../constants.ts';
import type {

@@ -13,3 +13,3 @@ ThreadEncodingStrategy,

AnyFunction,
} from '../types';
} from '../types.ts';
import {

@@ -20,3 +20,3 @@ StackFrame,

type MemoryRetainer,
} from '../memory';
} from '../memory.ts';

@@ -23,0 +23,0 @@ const FUNCTION = '_@f';

@@ -1,5 +0,5 @@

export {createThread} from './thread';
export type {ThreadOptions} from './thread';
export {retain, release, StackFrame, isMemoryManageable} from './memory';
export type {MemoryManageable, MemoryRetainer} from './memory';
export {createThread} from './thread.ts';
export type {ThreadOptions} from './thread.ts';
export {retain, release, StackFrame, isMemoryManageable} from './memory.ts';
export type {MemoryManageable, MemoryRetainer} from './memory.ts';
export {

@@ -10,3 +10,3 @@ RELEASE_METHOD,

ENCODE_METHOD,
} from './constants';
} from './constants.ts';
export {

@@ -18,6 +18,9 @@ targetFromIframe,

targetFromBrowserWebSocket,
} from './targets';
export {createBasicEncoder, createBasicEncoderWithOverrides} from './encoding';
export {createThreadAbortSignal, acceptThreadAbortSignal} from './abort';
export type {ThreadAbortSignal} from './abort';
} from './targets.ts';
export {
createBasicEncoder,
createBasicEncoderWithOverrides,
} from './encoding.ts';
export {createThreadAbortSignal, acceptThreadAbortSignal} from './abort.ts';
export type {ThreadAbortSignal} from './abort.ts';
export type {

@@ -34,2 +37,2 @@ Thread,

AnyFunction,
} from './types';
} from './types.ts';

@@ -1,3 +0,3 @@

import {RETAINED_BY, RETAIN_METHOD, RELEASE_METHOD} from './constants';
import type {MemoryRetainer, MemoryManageable} from './types';
import {RETAINED_BY, RETAIN_METHOD, RELEASE_METHOD} from './constants.ts';
import type {MemoryRetainer, MemoryManageable} from './types.ts';

@@ -4,0 +4,0 @@ export {RETAINED_BY, RETAIN_METHOD, RELEASE_METHOD};

import {on} from '@quilted/events';
import type {ThreadTarget} from '../../types';
import {CHECK_MESSAGE, RESPONSE_MESSAGE} from './shared';
import type {ThreadTarget} from '../../types.ts';
import {CHECK_MESSAGE, RESPONSE_MESSAGE} from './shared.ts';

@@ -5,0 +5,0 @@ export function targetFromIframe(

import {on} from '@quilted/events';
import type {ThreadTarget} from '../../types';
import {CHECK_MESSAGE, RESPONSE_MESSAGE} from './shared';
import type {ThreadTarget} from '../../types.ts';
import {CHECK_MESSAGE, RESPONSE_MESSAGE} from './shared.ts';

@@ -5,0 +5,0 @@ export function targetFromInsideIframe({

import {on} from '@quilted/events';
import type {ThreadTarget} from '../types';
import type {ThreadTarget} from '../types.ts';

@@ -4,0 +4,0 @@ export function targetFromMessagePort(port: MessagePort): ThreadTarget {

import {on, once} from '@quilted/events';
import type {ThreadTarget} from '../types';
import type {ThreadTarget} from '../types.ts';

@@ -4,0 +4,0 @@ export function targetFromBrowserWebSocket(websocket: WebSocket): ThreadTarget {

import {on} from '@quilted/events';
import type {ThreadTarget} from '../types';
import type {ThreadTarget} from '../types.ts';

@@ -4,0 +4,0 @@ export function targetFromWebWorker(worker: Worker): ThreadTarget {

import {describe, it, expect} from '@quilted/testing';
import {createThread, targetFromMessagePort} from '..';
import {MessageChannel} from './utiltiies';
import {createThread, targetFromMessagePort} from '../index.ts';
import {MessageChannel} from './utiltiies.ts';

@@ -5,0 +5,0 @@ describe('thread', () => {

@@ -9,6 +9,6 @@ import type {

AnyFunction,
} from './types';
} from './types.ts';
import {StackFrame, MemoryRetainer} from './memory';
import {createBasicEncoder} from './encoding/basic';
import {StackFrame, MemoryRetainer} from './memory.ts';
import {createBasicEncoder} from './encoding/basic.ts';

@@ -15,0 +15,0 @@ export interface ThreadOptions<

@@ -6,3 +6,3 @@ import type {

RETAINED_BY,
} from './constants';
} from './constants.ts';

@@ -9,0 +9,0 @@ export type Thread<Target> = ThreadCallable<Target>;

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

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

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