github graphile/crystal ruru-components@2.0.0

ruru-components

2.0.0-rc.7

Patch Changes

  • #2990
    5d408bd
    Thanks @benjie! - No code changes. Updates the
    release process, cleans up package.json, uses fixed identifiers for peer
    dependencies (unless they're explicit dependencies also). Hopefully move to
    trusted publishing.
  • Updated dependencies
    [5d408bd]:
    • ruru-types@2.0.0-rc.6
    • grafast@1.0.0-rc.9

2.0.0-rc.6

Patch Changes

2.0.0-rc.5

Patch Changes

2.0.0-rc.4

Patch Changes

2.0.0-rc.3

Patch Changes

2.0.0-rc.2

Patch Changes

2.0.0-rc.1

Patch Changes

2.0.0-beta.37

Patch Changes

2.0.0-beta.36

Patch Changes

2.0.0-beta.35

Patch Changes

2.0.0-beta.34

Patch Changes

  • #2646
    59adcd5
    Thanks @benjie! - Add condensed mode for Ruru,
    enabled by default. (To disable, use the settings cog in the editor view and
    uncheck condensed.)

  • #2645
    f941cfd
    Thanks @benjie! - Upgrade GraphiQL to latest
    release

  • Updated dependencies
    [2adfd6e,
    6113518]:

    • grafast@0.1.1-beta.25

2.0.0-beta.33

Patch Changes

  • #2578
    1d76d2f
    Thanks @benjie! - 🚨 Ruru has been "rebuilt"!
    The loading methods and APIs have changed!

    Ruru is now built on top of GraphiQL v5, which moves to using the Monaco
    editor (the same editor used in VSCode) enabling more familiar keybindings and
    more features (e.g. press F1 in the editor to see the command palette, and you
    can now add comments in the variables JSON). This has required a
    rearchitecture to Ruru's previously "single file" approach since Monaco uses
    workers which require additional files.

    In this release we have embraced the bundle splitting approach. We now bundle
    both prettier and mermaid, and they are now loaded on-demand.

    Usage instructions for all environments have had to change since we can no
    longer serve Ruru as a single HTML file. We now include helpers for serving
    Ruru's static files from whatever JS-based webserver you are using.

    We've also added some additional improvements:

    • Formatting with prettier now maintains the cursor position
      (Ctrl-Shift-P/Meta-Shift-P/Cmd-Shift-P depending on platform)
    • All editors are now formatted, not just the GraphQL editor
    • Prettier and mermaid should now work offline
    • Even more GraphiQL props are now passed through, including
      inputValueDeprecation and schemaDeprecation which you can set to false
      if your GraphQL server is, ahem, a little behind the GraphQL spec draft.

    🚨 Changes you need to make: 🚨

    • If you are using Ruru directly (i.e. importing from ruru/server), please
      see the new Ruru README for setup instructions, you'll want to switch out
      your previous setup. In particular, ruru/bundle no longer exists and you
      now need to serve the static files (via ruru/static).
    • defaultHTMLParts is no more; instead config.htmlParts (also
      preset.ruru.htmlParts for Graphile Config users) now allows the entries to
      be callback functions reducing boilerplate:
      -import { defaultHTMLParts } from "ruru/server";
       const config = {
         htmlParts: {
      -    metaTags: defaultHTMLParts.metaTags + "<!-- local override -->",
      +    metaTags: (base) => base + "<!-- local override -->",
         }
       }
      (alternatively you can use makeHTMLParts(config))
    • Grafserv users: plugin.grafserv.middleware.ruruHTMLParts is renamed to
      ruruHTML and wraps the generation of the HTML - simply trim Parts from
      the name and be sure calling next() is the final line of the function
       const plugin = {
         grafserv: {
           middleware: {
      -      ruruHTMLParts(next, event) {
      +      ruruHTML(next, event) {
               const { htmlParts, request } = event;
               htmlParts.titleTag = `<title>${escapeHTML(
                 "Ruru | " + request.getHeader("host"),
               )}</title>`;
               return next();
             },
           },
         },
       };

    Additional changes:

    • RuruConfig.clientConfig has been added for props to explicitly pass to
      Ruru making it explicit that these will be sent to the client
    • RuruServerConfig has deprecated the client options editorTheme,
      debugTools and eventSourceInit at the top level; instead these should be
      passed via RuruServerConfig.clientConfig making it explicit these will be
      sent to the client and expanding to cover more props
       const config = {
         endpoint: "/graphql",
      +  clientConfig: {
         editorTheme: "dark",
      +  },
       }
  • #2605
    24d379a
    Thanks @benjie! - Add defaultTheme and
    forcedTheme props to Ruru (passed through to GraphiQL)

  • Updated dependencies
    [c54c6db,
    ad588ec]:

    • grafast@0.1.1-beta.24

2.0.0-beta.32

Patch Changes

2.0.0-beta.31

Patch Changes

2.0.0-beta.30

Patch Changes

2.0.0-beta.29

Patch Changes

2.0.0-beta.28

Patch Changes

2.0.0-beta.27

Patch Changes

  • Updated dependencies []:
    • grafast@0.1.1-beta.19

2.0.0-beta.26

Patch Changes

  • Updated dependencies
    [b336a5829]:
    • grafast@0.1.1-beta.18

2.0.0-beta.25

Patch Changes

  • #2266
    38163c86a
    Thanks @hos! - Fix white-screen-of-death caused by
    EventSource disconnection. Instead, handle errors gracefully. Also, allow
    overriding of the EventSource configuration options.
  • Updated dependencies
    [69ab227b5]:
    • grafast@0.1.1-beta.17

2.0.0-beta.24

Patch Changes

  • Updated dependencies
    [76c7340b7]:
    • grafast@0.1.1-beta.16

2.0.0-beta.23

Patch Changes

2.0.0-beta.22

Patch Changes

2.0.0-beta.21

Patch Changes

  • Updated dependencies
    [807650035]:
    • grafast@0.1.1-beta.13

2.0.0-beta.20

Patch Changes

2.0.0-beta.19

Patch Changes

  • Updated dependencies
    [582bd768f]:
    • grafast@0.1.1-beta.11

2.0.0-beta.18

Patch Changes

2.0.0-beta.17

Patch Changes

  • Updated dependencies
    [437570f97]:
    • grafast@0.1.1-beta.9

2.0.0-beta.16

Patch Changes

  • Updated dependencies
    [bd5a908a4]:
    • grafast@0.1.1-beta.8

2.0.0-beta.15

Patch Changes

2.0.0-beta.14

Patch Changes

2.0.0-beta.13

Patch Changes

2.0.0-beta.12

Patch Changes

2.0.0-beta.11

Patch Changes

  • Updated dependencies []:
    • grafast@0.1.1-beta.3

2.0.0-beta.10

Patch Changes

2.0.0-beta.9

Patch Changes

2.0.0-beta.8

Patch Changes

  • #1799
    3dd5d86d6
    Thanks @jvandermey! - Can now pass onEdit
    callbacks through the Ruru config via the plugin system; e.g. to update the
    URL search params with the current editor state.

2.0.0-beta.7

Patch Changes

  • #1796
    ebb0b817e
    Thanks @benjie! - Can now set initial query and
    variables in Ruru via the plugin system; e.g. to set query/variables based on
    query string.

2.0.0-beta.6

Patch Changes

2.0.0-beta.5

Patch Changes

2.0.0-beta.4

Patch Changes

  • Updated dependencies
    [3700e204f]:
    • grafast@0.0.1-beta.7

2.0.0-beta.3

Patch Changes

2.0.0-beta.2

Patch Changes

2.0.0-beta.1

Patch Changes

2.0.0-alpha.2

Patch Changes

2.0.0-alpha.1

Patch Changes

2.0.0-1.1

Patch Changes

2.0.0-0.9

Patch Changes

  • 612092359 - Fix header saving

2.0.0-0.8

Patch Changes

2.0.0-0.7

Patch Changes

2.0.0-0.6

Patch Changes

  • a40fa6966 - Default to explain enabled. Fix issues with fetcher
    mutating immutable objects. Fix typo in README. Fix playground on grafast
    website.

2.0.0-0.5

Patch Changes

  • 9b296ba54 - More secure, more compatible, and lots of fixes
    across the monorepo

Don't miss a new crystal release

NewReleases is sending notifications on new releases.