ruru
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]:- graphile-config@1.0.0-rc.6
- ruru-types@2.0.0-rc.6
2.0.0-rc.6
Patch Changes
- #2937
8f50146
Thanks @benjie! - Eliminate dangling promises,
reducing chance of process exit due to unhandled promise rejection. - Updated dependencies
[8f50146]:- graphile-config@1.0.0-rc.5
2.0.0-rc.5
Patch Changes
-
#2910
9eb3829
Thanks @benjie! - Use consistent type export
syntax -
a3722d6
Thanks @benjie! - Refactor to enable TypeScript
options rewriteRelativeImportExtensions and erasableSyntaxOnly (including
using .ts extensions in source code) -
#2912
ebe1d22
Thanks @benjie! - Ruru now depends on ruru-types
package - stripped down vs ruru-components -
#2915
be9792b
Thanks @benjie! - Fix some peerDependencies woes -
Updated dependencies
[9eb3829,
a3722d6,
ebe1d22,
be9792b]:- graphile-config@1.0.0-rc.4
- ruru-types@2.0.0-rc.5
2.0.0-rc.4
Patch Changes
-
#2873
0772086
Thanks @benjie! - Update TypeScript configuration
to support Node 22 minimum -
#2881
1606298
Thanks @benjie! - Fix{"isTrusted": true}error
that would be output in Ruru when websocket connection unexpectedly
terminated. -
#2888
1a56db2
Thanks @benjaie! - Node v22+ is required for
this module. -
#2883
2e770df
Thanks @benjie! - Ruru gains ability to export
schema as SDL (with options!) -
#2847
d758351
Thanks @benjie! - Add ruru-components as a
dependency so the RuruProps type can come through. -
Updated dependencies
[1e45a3d,
0772086,
1606298,
1a56db2,
2e770df]:- ruru-components@2.0.0-rc.4
- graphile-config@1.0.0-rc.3
2.0.0-rc.3
Patch Changes
2.0.0-rc.2
Patch Changes
-
Updated dependencies
[a82e6fa]:- graphile-config@1.0.0-rc.2
2.0.0-rc.1
Patch Changes
-
Updated dependencies
[8a5a7c5]:- graphile-config@1.0.0-rc.1
2.0.0-beta.31
Patch Changes
2.0.0-beta.30
Patch Changes
-
#2694
13513dd
Thanks @benjie! - Add support foronErrorRFC
withPROPAGATE,NULLandHALTbehaviors implemented. -
#2678
6dafac1
Thanks @benjie! - Remove peer dependency
optionality in an attempt to satisfy pnpm's installation algorithms -
Updated dependencies
[cfd4c3c,
e15f886]:- graphile-config@0.0.1-beta.18
2.0.0-beta.29
Patch Changes
2.0.0-beta.28
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
2.0.0-beta.27
Patch Changes
-
#2636
ba8dacb
Thanks @benjie! - Improve backwards compatibility
of ruruHTML function; explicitly deprecate the htmlParts argument.
2.0.0-beta.26
Patch Changes
-
#2629
c5cc0ba
Thanks @benjie! - Fix loading worker scripts from
remote URLs. -
#2631
506b7a1
Thanks @benjie! - Add aruru.htmlfile you can
self-host, and move Ruru documentation to the website for easier navigation -
#2632
418190a
Thanks @benjie! - Ruru loading state now matches
expected theme (light/dark).
2.0.0-beta.25
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
bothprettierandmermaid, 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-Pdepending 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
inputValueDeprecationandschemaDeprecationwhich 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/bundleno longer exists and you
now need to serve the static files (viaruru/static). defaultHTMLPartsis no more; insteadconfig.htmlParts(also
preset.ruru.htmlPartsfor Graphile Config users) now allows the entries to
be callback functions reducing boilerplate:(alternatively you can use-import { defaultHTMLParts } from "ruru/server"; const config = { htmlParts: { - metaTags: defaultHTMLParts.metaTags + "<!-- local override -->", + metaTags: (base) => base + "<!-- local override -->", } }
makeHTMLParts(config))- Grafserv users:
plugin.grafserv.middleware.ruruHTMLPartsis renamed to
ruruHTMLand wraps the generation of the HTML - simply trimPartsfrom
the name and be sure callingnext()is the final line of the functionconst 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.clientConfighas been added for props to explicitly pass to
Ruru making it explicit that these will be sent to the clientRuruServerConfighas deprecated the client optionseditorTheme,
debugToolsandeventSourceInitat the top level; instead these should be
passed viaRuruServerConfig.clientConfigmaking it explicit these will be
sent to the client and expanding to cover more propsconst config = { endpoint: "/graphql", + clientConfig: { editorTheme: "dark", + }, }
- Formatting with prettier now maintains the cursor position
-
#2605
24d379a
Thanks @benjie! - Add defaultTheme and
forcedTheme props to Ruru (passed through to GraphiQL) -
#2600
ad588ec
Thanks @benjie! - Mark all
peerDependencies=dependencies modules as optional peerDependencies to make
pnpm marginally happier hopefully.
2.0.0-beta.24
Patch Changes
-
#2584
00b3b8b
Thanks @benjie! - Upgrade to GraphiQL v4. 🚨
Changegraphiql/graphiql.csstographiql/style.cssand
@graphiql/plugin-explorer/dist/style.cssto
@graphiql/plugin-explorer/style.css -
#2582
826f2cb
Thanks @benjie! - Fix button-in-button warning
from ToolbarMenu -
Updated dependencies
[0c6b1f1,
e0cdabe]:- graphile-config@0.0.1-beta.17
2.0.0-beta.23
Patch Changes
-
#2444
192a27e08763ea26607344a2ea6c7f5c595cc2a3
Thanks @benjie! - Upgrade to Mermaid 11, and
reduce verbosity of polymorphism in plan diagrams. -
#2546
997c49648b62a93e5b915c65c49cdad1654bef3e
Thanks @benjie! - Fix issue where ruru wasn't
hiding explain output in incremental delivery results. -
Updated dependencies
[459e1869a2ec58925b2bac5458af487c52a8ca37]:- graphile-config@0.0.1-beta.16
2.0.0-beta.22
Patch Changes
- #2426
658d46c9a5b246e3beb4ba2a004334278f7bb24d
Thanks @benjie! - Upgrade GraphiQL and fix
duplicate module issue
2.0.0-beta.21
Patch Changes
- Updated dependencies
[00d79e6f5608affc3f36bb0ce4ca2547230174e7]:- graphile-config@0.0.1-beta.15
2.0.0-beta.20
Patch Changes
- #2365
ba2847f3e
Thanks @benjie! -ruru/serverno longer uses
fsmodule to read data/version from disk, instead data is bundled in source
files. This may aid people attempting to bundle ruru.
2.0.0-beta.19
Patch Changes
- Updated dependencies
[83c546509]:- graphile-config@0.0.1-beta.14
2.0.0-beta.18
Patch Changes
- Updated dependencies
[7580bc16a]:- graphile-config@0.0.1-beta.13
2.0.0-beta.17
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
[d13b76f0f,
b167bd849,
6a13ecbd4]:- graphile-config@0.0.1-beta.12
2.0.0-beta.16
Patch Changes
- Updated dependencies
[5626c7d36]:- graphile-config@0.0.1-beta.11
2.0.0-beta.15
Patch Changes
2.0.0-beta.14
Patch Changes
-
#2125
18addb385
Thanks @benjie! - Change how unary steps are
rendered to plan diagrams, fixing the rendering of side-effect steps. -
#2124
cf535c210
Thanks @benjie! - Render implicit side effects as
dependencies on plan diagram
2.0.0-beta.13
Patch Changes
- Updated dependencies
[582bd768f]:- graphile-config@0.0.1-beta.9
2.0.0-beta.12
Patch Changes
- Updated dependencies
[db8ceed0f]:- graphile-config@0.0.1-beta.8
2.0.0-beta.11
Patch Changes
-
#1931
941e28003
Thanks @benjie! - Add support for deprecated
arguments to Ruru. -
#1931
068be2f51
Thanks @benjie! - Fix issue typing into Ruru
explorer plugin - characters no longer overwritten. -
Updated dependencies
[5de3e86eb]:- graphile-config@0.0.1-beta.7
2.0.0-beta.10
Patch Changes
- Updated dependencies
[0df5511ac]:- graphile-config@0.0.1-beta.6
2.0.0-beta.9
Patch Changes
- #1877
8a0cdb95f
Thanks @benjie! - Move 'declare global' out of
'interfaces.ts' and into 'index.ts' or equivalent. Should make TypeScript more
aware of these types. - Updated dependencies
[8a0cdb95f]:- graphile-config@0.0.1-beta.5
2.0.0-beta.8
Patch Changes
- Updated dependencies
[7aef73319]:- graphile-config@0.0.1-beta.4
2.0.0-beta.7
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.6
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.5
Patch Changes
-
#514
c9848f693
Thanks @benjie! - Update package.json repository
information -
Updated dependencies
[c9848f693]:- graphile-config@0.0.1-beta.3
2.0.0-beta.4
Patch Changes
2.0.0-beta.3
Patch Changes
-
#496
c9bfd9892
Thanks @benjie! - Update dependencies (sometimes
through major versions). -
#496
c747d91e9
Thanks @benjie! - Modules converted to ESM to fix
compatibility with GraphiQL. -
Updated dependencies
[c9bfd9892]:- graphile-config@0.0.1-beta.2
2.0.0-beta.2
Patch Changes
2.0.0-beta.1
Patch Changes
-
Updated dependencies
[cbd987385]:- graphile-config@0.0.1-beta.1
2.0.0-alpha.11
Patch Changes
- Updated dependencies
[a22830b2f]:- graphile-config@0.0.1-alpha.7
2.0.0-alpha.10
Patch Changes
- #418
9ab2adba2
Thanks @benjie! - Overhaul peerDependencies and
dependencies to try and eliminate duplicate modules error.
2.0.0-alpha.9
Patch Changes
2.0.0-alpha.8
Patch Changes
- Updated dependencies
[644938276]:- graphile-config@0.0.1-alpha.5
2.0.0-alpha.7
Patch Changes
- #399
409581534
Thanks @benjie! - Change many of the dependencies
to be instead (or also) peerDependencies, to avoid duplicate modules.
2.0.0-alpha.6
Patch Changes
- Updated dependencies
[198ac74d5]:- graphile-config@0.0.1-alpha.4
2.0.0-alpha.5
Patch Changes
- Updated dependencies
[adc7ae5e0]:- graphile-config@0.0.1-alpha.3
2.0.0-alpha.4
Patch Changes
2.0.0-alpha.3
Patch Changes
-
2fe247f75
Thanks @benjie! - Added ability to download
mermaid plan diagram as SVG. -
7f857950a
Thanks @benjie! - Upgrade to the latest
TypeScript/tslib -
Updated dependencies
[7f857950a]:- graphile-config@0.0.1-alpha.2
2.0.0-alpha.2
Patch Changes
-
#305
3cf35fdb4
Thanks @benjie! - 🚨 Ruru is now a CommonJS
module, no longer an ESM module.Ruru CLI now reads options from a
graphile.config.tsfile if present.It's now possible to customize the HTML that Ruru is served with (specifically
the meta, title, stylesheets, header JS, body content, body JS, and init
script), either via configuration:import { defaultHTMLParts } from "ruru/server"; const preset: GraphileConfig.Preset = { //... ruru: { htmlParts: { titleTag: "<title>GraphiQL with Grafast support - Ruru!</title>", metaTags: defaultHTMLParts.metaTags + `<meta name="viewport" content="width=device-width, initial-scale=1" />`, }, }, };
or via a plugin, which allows you to change it on a per-request (per-user)
basis:const RuruMetaPlugin: GraphileConfig.Plugin = { name: "RuruMetaPlugin", version: "0.0.0", grafserv: { hooks: { ruruHTMLParts(_info, parts, extra) { // extra.request gives you access to request details, so you can customize `parts` for the user parts.metaTags += `<meta name="viewport" content="width=device-width, initial-scale=1" />`; }, }, }, };
2.0.0-alpha.1
Patch Changes
-
759ad403d
Thanks @benjie! - Alpha release - see
https://postgraphile.org/news/2023-04-26-version-5-alpha -
Updated dependencies
[759ad403d]:- graphile-config@0.0.1-alpha.1
2.0.0-1.2
Patch Changes
- Updated dependencies
[b4eaf89f4]:- graphile-config@0.0.1-1.2
2.0.0-1.1
Patch Changes
-
#267
159735204
Thanks @benjie! - Add formatting for SQL aliases -
#260
d5312e6b9
Thanks @benjie! - TypeScript v5 is now required -
Updated dependencies
[d5312e6b9]:- graphile-config@0.0.1-1.1
2.0.0-0.13
Patch Changes
612092359- Fix header saving
2.0.0-0.12
Patch Changes
- Updated dependencies
[11e7c12c5]:- graphile-config@0.0.1-0.6
2.0.0-0.11
Patch Changes
2.0.0-0.10
Patch Changes
2.0.0-0.9
Patch Changes
- Updated dependencies [
0ab95d0b1]:- graphile-config@0.0.1-0.5
2.0.0-0.8
Patch Changes
- Updated dependencies
[842f6ccbb]:- graphile-config@0.0.1-0.4
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 -
Updated dependencies [
9b296ba54]:- graphile-config@0.0.1-0.2
2.0.0-0.4
Patch Changes
768f32681- Fix peerDependencies ranges
2.0.0-0.3
Patch Changes
0983df3f6- Downgrade to React 16 to work around npm infinite
loop bug (npm/cli#5322).
2.0.0-0.2
Patch Changes
-
d11c1911c- Fix dependencies -
Updated dependencies [
d11c1911c]:- graphile-config@0.0.1-0.1
2.0.0-0.1
Patch Changes
6576bd37b- Fix text colours in dark mode
2.0.0-0.0
Major Changes
Patch Changes
- Updated dependencies
[91f2256b3]:- graphile-config@0.0.1-0.0