Skip to content

Releases: lemonmade/quilt

@quilted/quilt@0.10.2

Choose a tag to compare

@lemonmade lemonmade released this 14 Jul 19:45
8cd37fd

Patch Changes

  • Updated dependencies [6e61707]:
    • @quilted/preact-router@0.6.0
    • @quilted/preact-localize@0.4.7

@quilted/preact-router@0.6.0

Choose a tag to compare

@lemonmade lemonmade released this 14 Jul 19:45
8cd37fd

Minor Changes

  • #975 6e61707 Thanks @lemonmade! - Added a scroll option to Navigation.navigate() and <Link>, and made the URL change — not the history operation — decide the default scroll behavior.

    For push and replace navigations alike, the default is now:

    • Changing the pathname or hash resets the scroll position to the top of the page (or scrolls to the URL's hash target). Previously, replace navigations never reset.
    • Changing only the search params keeps the current scroll position — search-only navigations usually encode UI state (filters, tabs, a selected calendar day) rather than a new location. Previously, push navigations always reset.

    Pass scroll to override the default in either direction:

    navigation.navigate(url, {scroll: false});
    <Link to={url} scroll={false}>
      Select day
    </Link>

@quilted/preact-localize@0.4.7

Choose a tag to compare

@lemonmade lemonmade released this 14 Jul 19:45
8cd37fd

Patch Changes

  • Updated dependencies [6e61707]:
    • @quilted/preact-router@0.6.0

@quilted/threads@4.1.0

Choose a tag to compare

@lemonmade lemonmade released this 26 Jun 14:13
e2d615b

Minor Changes

  • #968 b17b028 Thanks @lemonmade! - ThreadWindow's targetOrigin option now also validates the origin of incoming messages, and gained an 'ancestor' mode.

    Previously targetOrigin only set the origin for outgoing postMessage() calls; inbound messages were accepted from any origin as long as they came from the expected window. It is now also used to reject messages whose origin does not match, so a concrete targetOrigin authenticates both directions:

    const thread = ThreadWindow.iframe(iframe, {
      targetOrigin: 'https://embed.my-app.com',
      exports: {
        /* ... */
      },
    });

    The default remains '*' (post to, and accept from, any origin), so existing behaviour is unchanged.

    You can also pass targetOrigin: 'ancestor' to pin to the origin that framed the current window — read from location.ancestorOrigins, falling back to the origin of the first received message on platforms without that API (e.g. Firefox), buffering outgoing messages until it is known. This is convenient inside an iframe that trusts its embedder but doesn't know the embedder's origin ahead of time:

    const thread = ThreadWindow.parent({targetOrigin: 'ancestor'});

@quilted/preact-graphql@0.2.1

Choose a tag to compare

@lemonmade lemonmade released this 26 Jun 13:14
2f22012

Patch Changes

  • #966 8143128 Thanks @lemonmade! - Track the current @quilted/graphql

    @quilted/preact-graphql still pinned @quilted/graphql at ^3.4.1 (it wasn't co-released when @quilted/graphql reached 3.5.0), so consumers on graphql-js 17 could resolve its @quilted/graphql to the older graphql-16-only build and end up with two graphql copies. Bump the range to ^3.5.0 to match the rest of the workspace.

@quilted/vite@0.4.1

Choose a tag to compare

@lemonmade lemonmade released this 25 Jun 16:56
0d3f51f

Patch Changes

  • Updated dependencies [7f4a42d]:
    • @quilted/rollup@0.6.0

@quilted/rollup@0.6.0

Choose a tag to compare

@lemonmade lemonmade released this 25 Jun 16:57
0d3f51f

Minor Changes

  • #962 7f4a42d Thanks @lemonmade! - Support graphql@17

    • Widen the graphql version range to ^16.8.0 || ^17.0.0 (^16.14.0 || ^17.0.0 for @quilted/quilt's peer dependency) so consumers can adopt graphql-js 17.
    • Fix custom scalar coercion under graphql 17: createGraphQLSchema now also assigns the renamed coerceOutputValue / coerceInputValue / coerceInputLiteral methods, not only the legacy serialize / parseValue / parseLiteral. graphql-js 17 reads the new names at execution and fixes them at construction, so without this a custom scalar's input validation silently stopped running (e.g. a bad value passed through a variable was accepted). No effect on graphql 16, where the extra properties are ignored.

Patch Changes

  • Updated dependencies [7f4a42d]:
    • @quilted/graphql@3.5.0

@quilted/react-query@1.1.0

Choose a tag to compare

@lemonmade lemonmade released this 25 Jun 16:57
0d3f51f

Patch Changes

  • Updated dependencies [7f4a42d]:
    • @quilted/quilt@0.10.0

@quilted/quilt@0.10.1

Choose a tag to compare

@lemonmade lemonmade released this 25 Jun 18:30
fcf2980

Patch Changes

  • Updated dependencies [98aeb13]:
    • @quilted/preact-graphql@0.2.0

@quilted/quilt@0.10.0

Choose a tag to compare

@lemonmade lemonmade released this 25 Jun 16:56
0d3f51f

Minor Changes

  • #962 7f4a42d Thanks @lemonmade! - Support graphql@17

    • Widen the graphql version range to ^16.8.0 || ^17.0.0 (^16.14.0 || ^17.0.0 for @quilted/quilt's peer dependency) so consumers can adopt graphql-js 17.
    • Fix custom scalar coercion under graphql 17: createGraphQLSchema now also assigns the renamed coerceOutputValue / coerceInputValue / coerceInputLiteral methods, not only the legacy serialize / parseValue / parseLiteral. graphql-js 17 reads the new names at execution and fixes them at construction, so without this a custom scalar's input validation silently stopped running (e.g. a bad value passed through a variable was accepted). No effect on graphql 16, where the extra properties are ignored.

Patch Changes

  • Updated dependencies [7f4a42d]:
    • @quilted/graphql@3.5.0