- #184
30d28aeThanks @jedlikowski! - fix: handle outdated message in channel queue
- #154
2541a1eThanks @onigoetz! - feat!: use a single SharedArrayBuffer, remove uselessbufferSizeoption
- #148
7b6a0ebThanks @JounQin! - feat: migrate@pkgr/utilsto lite@pkgr/core- This will make the whole package much more smaller
-
#145
b2affa0Thanks @JounQin! - feat: add newglobalShimsoption, what means you can envSYNCKIT_GLOBAL_SHIMS=1to enable auto polyfilling for some modules, for example:fetchfromnode-fetch,performancefromnode:perf_hooks.You can also pass a custom
globalShimsoption asGlobalShimArrayto custom your own shims:export interface GlobalShim { moduleName: string; /** * `undefined` means side effect only */ globalName?: string; /** * 1. `undefined` or empty string means `default`, for example: * ```js * import globalName from 'module-name' * ``` * * 2. `null` means namespaced, for example: * ```js * import * as globalName from 'module-name' * ``` * */ named?: string | null; /** * If not `false`, the shim will only be applied when the original `globalName` unavailable, * for example you may only want polyfill `globalThis.fetch` when it's unavailable natively: * ```js * import fetch from 'node-fetch' * * if (!globalThis.fetch) { * globalThis.fetch = fetch * } * ``` */ conditional?: boolean; }
You can aslo reuse the exported
DEFAULT_GLOBAL_SHIMS_PRESETfor extanding:import { DEFAULT_GLOBAL_SHIMS_PRESET, createSyncFn } from "synckit"; const syncFn = createSyncFn(require.resolve("./worker"), { globalShims: [ ...DEFAULT_GLOBAL_SHIMS_PRESET, // your own shim here ], });
-
#141
608c9d9Thanks @JounQin! - fix: only fallback tots-nodewhen it's available - close #128 -
#142
097e5cdThanks @JounQin! - feat: add custom transferList support - close #131
- #126
758aaf1Thanks @krossekrabbe! - fix: pnp loader path on Windows
-
#106
9f27ff9Thanks @JounQin! - feat: addswc(@swc-node/register) support out of box -
#103
b1308acThanks @noahnu! - fix: pass yarn PnP experimental loader to worker if it exists
-
#98
4fe6aefThanks @noahnu! - feat: support yarn PnP out of box, propagate PnP runtime -
#97
d1bed37Thanks @noahnu! - fix: typo ofSYNCKIT_EXEC_ARGVenvironment variable -
#101
34e44aeThanks @JounQin! - feat: propagate sync errors from worker
-
#90
ffcf174Thanks @JounQin! - build!: drop Node 12 support, remove testing on Node 14 -
#90
ffcf174Thanks @JounQin! - feat: support more ts runners for TypeScript files- https://github.com/TypeStrong/ts-node
- https://github.com/egoist/esbuild-register
- https://github.com/folke/esbuild-runner
- https://github.com/esbuild-kit/tsx
Feel free to PR to add more runner support like
swcif you want
-
c53d9dcThanks @JounQin! - feat: use workerPath as URL for Windowsrelated mdx-js/eslint-mdx#389
- #39
0698572Thanks @JounQin! - fix: test whetherreceiveMessageOnPortavailable for--experimental-worker