├── .changeset ├── README.md └── config.json ├── .codesandbox └── ci.json ├── .editorconfig ├── .gitattributes ├── .github └── workflows │ ├── autofix.yml │ ├── ci.yml │ ├── pkg-pr-new.yml │ ├── pkg-size.yml │ ├── release.yml │ └── size-limit.yml ├── .gitignore ├── .nano-staged.js ├── .nvmrc ├── .prettierignore ├── .remarkrc ├── .simple-git-hooks.js ├── .size-limit.json ├── .yarn ├── plugins │ └── plugin-prepare-lifecycle.cjs └── releases │ └── yarn-4.9.1.cjs ├── .yarnrc.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── benchmarks ├── benchmark.cjs ├── benchmark.cjs.txt ├── benchmark.esm.txt ├── benchmark.js ├── deasync.cjs ├── make-synchronized.cjs ├── make-synchronized.js ├── native.cjs ├── sync-threads.cjs ├── sync-threads.worker.cjs ├── synckit.cjs ├── synckit.js ├── synckit.worker.cjs └── synckit.worker.js ├── eslint.config.js ├── package.json ├── src ├── common.ts ├── constants.ts ├── helpers.ts ├── index.ts ├── tsconfig.json └── types.ts ├── test ├── __snapshots__ │ └── utils.spec.ts.snap ├── cjs │ ├── package.json │ └── worker-cjs.ts ├── common.spec.ts ├── esm │ ├── package.json │ └── worker-esm.ts ├── fixtures │ ├── __snapshots__ │ │ └── fixtures.spec.ts.snap │ ├── bun │ │ ├── .gitignore │ │ ├── README.md │ │ ├── bun.lock │ │ ├── index.ts │ │ ├── package.json │ │ ├── tsconfig.json │ │ └── worker.ts │ ├── fixtures.spec.ts │ └── yarn-pnp │ │ ├── .gitignore │ │ ├── .pnp.cjs │ │ ├── .pnp.loader.mjs │ │ ├── .yarn │ │ └── releases │ │ │ └── yarn-4.7.0.cjs │ │ ├── .yarnrc.yml │ │ ├── index.js │ │ ├── package.json │ │ ├── worker.js │ │ └── yarn.lock ├── fn.spec.ts ├── helpers.spec.ts ├── helpers.ts ├── reliability.spec.ts ├── ts-runner.spec.ts ├── types-d.cts ├── types-d.ts ├── types.ts ├── utils.spec.ts ├── worker-error.cjs ├── worker-identity.js ├── worker-js.js ├── worker-mts.mts ├── worker.cjs ├── worker.mjs └── worker.ts ├── tsconfig.json └── yarn.lock /.changeset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.changeset/README.md -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.changeset/config.json -------------------------------------------------------------------------------- /.codesandbox/ci.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.codesandbox/ci.json -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/workflows/autofix.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.github/workflows/autofix.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/pkg-pr-new.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.github/workflows/pkg-pr-new.yml -------------------------------------------------------------------------------- /.github/workflows/pkg-size.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.github/workflows/pkg-size.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/size-limit.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.github/workflows/size-limit.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.gitignore -------------------------------------------------------------------------------- /.nano-staged.js: -------------------------------------------------------------------------------- 1 | export { default } from '@1stg/nano-staged/tsc' 2 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 22 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .yarn 2 | .pnp.* 3 | -------------------------------------------------------------------------------- /.remarkrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.remarkrc -------------------------------------------------------------------------------- /.simple-git-hooks.js: -------------------------------------------------------------------------------- 1 | export { default } from '@1stg/simple-git-hooks' 2 | -------------------------------------------------------------------------------- /.size-limit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.size-limit.json -------------------------------------------------------------------------------- /.yarn/plugins/plugin-prepare-lifecycle.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.yarn/plugins/plugin-prepare-lifecycle.cjs -------------------------------------------------------------------------------- /.yarn/releases/yarn-4.9.1.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.yarn/releases/yarn-4.9.1.cjs -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/.yarnrc.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/README.md -------------------------------------------------------------------------------- /benchmarks/benchmark.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/benchmark.cjs -------------------------------------------------------------------------------- /benchmarks/benchmark.cjs.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/benchmark.cjs.txt -------------------------------------------------------------------------------- /benchmarks/benchmark.esm.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/benchmark.esm.txt -------------------------------------------------------------------------------- /benchmarks/benchmark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/benchmark.js -------------------------------------------------------------------------------- /benchmarks/deasync.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/deasync.cjs -------------------------------------------------------------------------------- /benchmarks/make-synchronized.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/make-synchronized.cjs -------------------------------------------------------------------------------- /benchmarks/make-synchronized.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/make-synchronized.js -------------------------------------------------------------------------------- /benchmarks/native.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/native.cjs -------------------------------------------------------------------------------- /benchmarks/sync-threads.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/sync-threads.cjs -------------------------------------------------------------------------------- /benchmarks/sync-threads.worker.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/sync-threads.worker.cjs -------------------------------------------------------------------------------- /benchmarks/synckit.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/synckit.cjs -------------------------------------------------------------------------------- /benchmarks/synckit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/synckit.js -------------------------------------------------------------------------------- /benchmarks/synckit.worker.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/synckit.worker.cjs -------------------------------------------------------------------------------- /benchmarks/synckit.worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/benchmarks/synckit.worker.js -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/package.json -------------------------------------------------------------------------------- /src/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/src/common.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/src/helpers.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/src/tsconfig.json -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/src/types.ts -------------------------------------------------------------------------------- /test/__snapshots__/utils.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/__snapshots__/utils.spec.ts.snap -------------------------------------------------------------------------------- /test/cjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cjs-test" 3 | } 4 | -------------------------------------------------------------------------------- /test/cjs/worker-cjs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/cjs/worker-cjs.ts -------------------------------------------------------------------------------- /test/common.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/common.spec.ts -------------------------------------------------------------------------------- /test/esm/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/esm/package.json -------------------------------------------------------------------------------- /test/esm/worker-esm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/esm/worker-esm.ts -------------------------------------------------------------------------------- /test/fixtures/__snapshots__/fixtures.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/__snapshots__/fixtures.spec.ts.snap -------------------------------------------------------------------------------- /test/fixtures/bun/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/bun/.gitignore -------------------------------------------------------------------------------- /test/fixtures/bun/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/bun/README.md -------------------------------------------------------------------------------- /test/fixtures/bun/bun.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/bun/bun.lock -------------------------------------------------------------------------------- /test/fixtures/bun/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/bun/index.ts -------------------------------------------------------------------------------- /test/fixtures/bun/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/bun/package.json -------------------------------------------------------------------------------- /test/fixtures/bun/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/bun/tsconfig.json -------------------------------------------------------------------------------- /test/fixtures/bun/worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/bun/worker.ts -------------------------------------------------------------------------------- /test/fixtures/fixtures.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/fixtures.spec.ts -------------------------------------------------------------------------------- /test/fixtures/yarn-pnp/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/yarn-pnp/.gitignore -------------------------------------------------------------------------------- /test/fixtures/yarn-pnp/.pnp.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/yarn-pnp/.pnp.cjs -------------------------------------------------------------------------------- /test/fixtures/yarn-pnp/.pnp.loader.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/yarn-pnp/.pnp.loader.mjs -------------------------------------------------------------------------------- /test/fixtures/yarn-pnp/.yarn/releases/yarn-4.7.0.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/yarn-pnp/.yarn/releases/yarn-4.7.0.cjs -------------------------------------------------------------------------------- /test/fixtures/yarn-pnp/.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/yarn-pnp/.yarnrc.yml -------------------------------------------------------------------------------- /test/fixtures/yarn-pnp/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/yarn-pnp/index.js -------------------------------------------------------------------------------- /test/fixtures/yarn-pnp/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/yarn-pnp/package.json -------------------------------------------------------------------------------- /test/fixtures/yarn-pnp/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/yarn-pnp/worker.js -------------------------------------------------------------------------------- /test/fixtures/yarn-pnp/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fixtures/yarn-pnp/yarn.lock -------------------------------------------------------------------------------- /test/fn.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/fn.spec.ts -------------------------------------------------------------------------------- /test/helpers.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/helpers.spec.ts -------------------------------------------------------------------------------- /test/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/helpers.ts -------------------------------------------------------------------------------- /test/reliability.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/reliability.spec.ts -------------------------------------------------------------------------------- /test/ts-runner.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/ts-runner.spec.ts -------------------------------------------------------------------------------- /test/types-d.cts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/types-d.cts -------------------------------------------------------------------------------- /test/types-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/types-d.ts -------------------------------------------------------------------------------- /test/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/types.ts -------------------------------------------------------------------------------- /test/utils.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/utils.spec.ts -------------------------------------------------------------------------------- /test/worker-error.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/worker-error.cjs -------------------------------------------------------------------------------- /test/worker-identity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/worker-identity.js -------------------------------------------------------------------------------- /test/worker-js.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/worker-js.js -------------------------------------------------------------------------------- /test/worker-mts.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/worker-mts.mts -------------------------------------------------------------------------------- /test/worker.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/worker.cjs -------------------------------------------------------------------------------- /test/worker.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/worker.mjs -------------------------------------------------------------------------------- /test/worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/test/worker.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/un-ts/synckit/HEAD/yarn.lock --------------------------------------------------------------------------------