Skip to content

Releases: preactjs/prefresh

@prefresh/webpack@4.0.7

Choose a tag to compare

@github-actions github-actions released this 27 Aug 13:10
5131fff

Patch Changes

  • Updated dependencies [b390f28]:
    • @prefresh/core@1.5.11

@prefresh/web-dev-server@1.1.7

Choose a tag to compare

@github-actions github-actions released this 27 Aug 13:10
5131fff

Patch Changes

  • Updated dependencies [b390f28]:
    • @prefresh/core@1.5.11

@prefresh/vite@4.0.0

Choose a tag to compare

@github-actions github-actions released this 27 Aug 13:10
5131fff

Major Changes

  • #614 f1a23d0 Thanks @LoganDark! - Make Babel an optional peer dependency

    @babel/core and @prefresh/babel-plugin are no longer hard dependencies of @prefresh/vite. Projects using modern versions of Vite no longer require Babel in their dependency tree.

Patch Changes

  • #626 4bbe51f Thanks @JoviDeCroock! - Fix type resolution under moduleResolution: NodeNext and Deno

    The import condition now resolves to a real ESM entry (src/index.mjs) with matching ESM type declarations (index.d.mts using export default), while require keeps the CommonJS declarations (index.d.ts using export =). Previously the ESM entry was typed with a CJS-style export = declaration, which TypeScript 6 / Deno 2.8.3+ reject as a hard error.

    Also inline the FilterPattern type instead of importing it from @rollup/pluginutils, whose types do not resolve under NodeNext.

  • Updated dependencies [b390f28]:

    • @prefresh/core@1.5.11

@prefresh/nollup@4.0.5

Choose a tag to compare

@github-actions github-actions released this 27 Aug 13:10
5131fff

Patch Changes

  • Updated dependencies [b390f28]:
    • @prefresh/core@1.5.11

@prefresh/core@1.5.11

Choose a tag to compare

@github-actions github-actions released this 27 Aug 13:10
5131fff

Patch Changes

@prefresh/vite@3.0.1

Choose a tag to compare

Patch Changes

  • ba9db171417a3f9eb5726763eb693ca3f0cdce0d #611 Thanks @JoviDeCroock! - Add workaround for Oxc transforming differently than babel

  • f6129bbef1db5db70e292b56a6b8fff734ba2cc2 #613 Thanks @JoviDeCroock! - Align $RefreshSig$ with React's HOC-chain design to fix memo-wrapped components

    Both Babel and Oxc emit two _s(…, key) calls for a memo-wrapped component
    (_s(memo(_c = _s(inner, key)), key)). The previous status-machine approach
    mishandled the second keyed call, crashing with "Cannot set properties of
    undefined" because the outer type had not yet been registered when sign was
    called with 'needsHooks'.

    The new implementation follows the same pattern as
    createSignatureFunctionForTransform in vite-plugin-react:

    • Discriminate by typeof key === 'string' instead of a mutable status variable.
    • Always call sign with 'begin' for every keyed call, regardless of position
      in the HOC chain.
    • Track savedType (the innermost type) and defer 'needsHooks' collection to
      the first no-argument body call, guarded by a didCollectHooks flag.

    @prefresh/core's sign is also made idempotent on the 'begin' path so that
    the inner type's getCustomHooks is never overwritten by an outer HOC call that
    carries no hook information, and the 'needsHooks' path is guarded against a
    missing signature entry.

  • Updated dependencies [f6129bbef1db5db70e292b56a6b8fff734ba2cc2]:

    • @prefresh/core@1.5.10

@prefresh/core@1.5.10

Choose a tag to compare

Patch Changes

  • f6129bbef1db5db70e292b56a6b8fff734ba2cc2 #613 Thanks @JoviDeCroock! - Align $RefreshSig$ with React's HOC-chain design to fix memo-wrapped components

    Both Babel and Oxc emit two _s(…, key) calls for a memo-wrapped component
    (_s(memo(_c = _s(inner, key)), key)). The previous status-machine approach
    mishandled the second keyed call, crashing with "Cannot set properties of
    undefined" because the outer type had not yet been registered when sign was
    called with 'needsHooks'.

    The new implementation follows the same pattern as
    createSignatureFunctionForTransform in vite-plugin-react:

    • Discriminate by typeof key === 'string' instead of a mutable status variable.
    • Always call sign with 'begin' for every keyed call, regardless of position
      in the HOC chain.
    • Track savedType (the innermost type) and defer 'needsHooks' collection to
      the first no-argument body call, guarded by a didCollectHooks flag.

    @prefresh/core's sign is also made idempotent on the 'begin' path so that
    the inner type's getCustomHooks is never overwritten by an outer HOC call that
    carries no hook information, and the 'needsHooks' path is guarded against a
    missing signature entry.

@prefresh/vite@3.0.0

Choose a tag to compare

@github-actions github-actions released this 08 Apr 06:37
985af13

Major Changes

Patch Changes

@prefresh/rolldown@0.1.0

Choose a tag to compare

@github-actions github-actions released this 08 Apr 06:37
985af13

Minor Changes

@prefresh/web-dev-server@1.1.6

Choose a tag to compare

Patch Changes