Skip to content

Upgrading unctx 0.0 to 1

Unknown0.0.4 → 1.2.0New1Fixed7

UnknownUpgrade verdict

DepDelta hasn't looked for the notes of 4 of 9 releases yet, so breaking changes can't be ruled out.

  • DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
  • Their commits are listed with this comparison.
Unknown for releases without notes

Releases without notes may still need changes. Check their commits before upgrading.

Adds acorn ^8.7.0, estree-walker ^2.0.2, magic-string ^0.26.1, unplugin ^0.6.1.

Installs 22 packages in all (was 0).

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • added: function executeAsync<T>(fn: AsyncFn<T>): [Promise<T>, () => void]
  • added: function withAsyncContext<T = any>(fn: AsyncFn<T>, transformed?: boolean): AsyncFn<T>
  • added: property UseContext.callAsync: <R>(instance: T, cb: () => R | Promise<R>) => Promise<R>
  • added: property UseContext.tryUse: () => T | null
  • added: const unctxPlugin: unplugin.UnpluginInstance<UnctxPluginOptions>
  • added: interface UnctxPluginOptions extends TransformerOptions
  • added: property UnctxPluginOptions.transformInclude?: (id: string) => boolean
  • added: function createTransformer(options?: TransformerOptions): { transform: (code: string, opts?: { force?: false }) => { code: string; magicString: MagicString }; shouldTransform: (code: string) => boolean }
  • added: interface TransformerOptions
  • added: property TransformerOptions.asyncFunctions?: string[]
  • added: property TransformerOptions.helperModule?: string
  • added: property TransformerOptions.helperName?: string