ruru 2.0.0-alpha.1 → 2.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +125 -0
- package/bundle/ruru.min.js +1 -1
- package/dist/cli-run.js +5 -3
- package/dist/cli-run.js.map +1 -1
- package/dist/cli.d.ts +5 -3
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +52 -12
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +20 -0
- package/dist/interfaces.d.ts.map +1 -0
- package/dist/interfaces.js +3 -0
- package/dist/interfaces.js.map +1 -0
- package/dist/server.d.ts +45 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +64 -24
- package/dist/server.js.map +1 -1
- package/package.json +12 -9
- package/dist/bundle.d.ts +0 -10
- package/dist/bundle.d.ts.map +0 -1
- package/dist/bundle.js +0 -17
- package/dist/bundle.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
# ruru
|
|
2
2
|
|
|
3
|
+
## 2.0.0-alpha.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#418](https://github.com/benjie/postgraphile-private/pull/418)
|
|
8
|
+
[`9ab2adba2`](https://github.com/benjie/postgraphile-private/commit/9ab2adba2c146b5d1bc91bbb2f25e4645ed381de)
|
|
9
|
+
Thanks [@benjie](https://github.com/benjie)! - Overhaul peerDependencies and
|
|
10
|
+
dependencies to try and eliminate duplicate modules error.
|
|
11
|
+
|
|
12
|
+
## 2.0.0-alpha.9
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
[[`675b7abb9`](https://github.com/benjie/postgraphile-private/commit/675b7abb93e11d955930b9026fb0b65a56ecc999),
|
|
18
|
+
[`c5050dd28`](https://github.com/benjie/postgraphile-private/commit/c5050dd286bd6d9fa4a5d9cfbf87ba609cb148dd),
|
|
19
|
+
[`0d1782869`](https://github.com/benjie/postgraphile-private/commit/0d1782869adc76f5bbcecfdcbb85a258c468ca37)]:
|
|
20
|
+
- graphile-config@0.0.1-alpha.6
|
|
21
|
+
|
|
22
|
+
## 2.0.0-alpha.8
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
[[`644938276`](https://github.com/benjie/postgraphile-private/commit/644938276ebd48c5486ba9736a525fcc66d7d714)]:
|
|
28
|
+
- graphile-config@0.0.1-alpha.5
|
|
29
|
+
|
|
30
|
+
## 2.0.0-alpha.7
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- [#399](https://github.com/benjie/postgraphile-private/pull/399)
|
|
35
|
+
[`409581534`](https://github.com/benjie/postgraphile-private/commit/409581534f41ac2cf0ff21c77c2bcd8eaa8218fd)
|
|
36
|
+
Thanks [@benjie](https://github.com/benjie)! - Change many of the dependencies
|
|
37
|
+
to be instead (or also) peerDependencies, to avoid duplicate modules.
|
|
38
|
+
|
|
39
|
+
## 2.0.0-alpha.6
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies
|
|
44
|
+
[[`198ac74d5`](https://github.com/benjie/postgraphile-private/commit/198ac74d52fe1e47d602fe2b7c52f216d5216b25)]:
|
|
45
|
+
- graphile-config@0.0.1-alpha.4
|
|
46
|
+
|
|
47
|
+
## 2.0.0-alpha.5
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies
|
|
52
|
+
[[`adc7ae5e0`](https://github.com/benjie/postgraphile-private/commit/adc7ae5e002961c8b8286500527752f21139ab9e)]:
|
|
53
|
+
- graphile-config@0.0.1-alpha.3
|
|
54
|
+
|
|
55
|
+
## 2.0.0-alpha.4
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- [`f34bd5a3c`](https://github.com/benjie/postgraphile-private/commit/f34bd5a3c353693b86a0307357a3620110700e1c)
|
|
60
|
+
Thanks [@benjie](https://github.com/benjie)! - Address dependency issues.
|
|
61
|
+
|
|
62
|
+
## 2.0.0-alpha.3
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- [`2fe247f75`](https://github.com/benjie/postgraphile-private/commit/2fe247f751377e18b3d6809cba39a01aa1602dbc)
|
|
67
|
+
Thanks [@benjie](https://github.com/benjie)! - Added ability to download
|
|
68
|
+
mermaid plan diagram as SVG.
|
|
69
|
+
|
|
70
|
+
- [`7f857950a`](https://github.com/benjie/postgraphile-private/commit/7f857950a7e4ec763c936eb6bd1fb77824041d71)
|
|
71
|
+
Thanks [@benjie](https://github.com/benjie)! - Upgrade to the latest
|
|
72
|
+
TypeScript/tslib
|
|
73
|
+
|
|
74
|
+
- Updated dependencies
|
|
75
|
+
[[`7f857950a`](https://github.com/benjie/postgraphile-private/commit/7f857950a7e4ec763c936eb6bd1fb77824041d71)]:
|
|
76
|
+
- graphile-config@0.0.1-alpha.2
|
|
77
|
+
|
|
78
|
+
## 2.0.0-alpha.2
|
|
79
|
+
|
|
80
|
+
### Patch Changes
|
|
81
|
+
|
|
82
|
+
- [#305](https://github.com/benjie/postgraphile-private/pull/305)
|
|
83
|
+
[`3cf35fdb4`](https://github.com/benjie/postgraphile-private/commit/3cf35fdb41d08762e9ff838a55dd7fc6004941f8)
|
|
84
|
+
Thanks [@benjie](https://github.com/benjie)! - 🚨 Ruru is now a CommonJS
|
|
85
|
+
module, no longer an ESM module.
|
|
86
|
+
|
|
87
|
+
Ruru CLI now reads options from a `graphile.config.ts` file if present.
|
|
88
|
+
|
|
89
|
+
It's now possible to customize the HTML that Ruru is served with (specifically
|
|
90
|
+
the meta, title, stylesheets, header JS, body content, body JS, and init
|
|
91
|
+
script), either via configuration:
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
import { defaultHTMLParts } from "ruru/server";
|
|
95
|
+
|
|
96
|
+
const preset: GraphileConfig.Preset = {
|
|
97
|
+
//...
|
|
98
|
+
ruru: {
|
|
99
|
+
htmlParts: {
|
|
100
|
+
titleTag: "<title>GraphiQL with Grafast support - Ruru!</title>",
|
|
101
|
+
metaTags:
|
|
102
|
+
defaultHTMLParts.metaTags +
|
|
103
|
+
`<meta name="viewport" content="width=device-width, initial-scale=1" />`,
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
or via a plugin, which allows you to change it on a per-request (per-user)
|
|
110
|
+
basis:
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
const RuruMetaPlugin: GraphileConfig.Plugin = {
|
|
114
|
+
name: "RuruMetaPlugin",
|
|
115
|
+
version: "0.0.0",
|
|
116
|
+
grafserv: {
|
|
117
|
+
hooks: {
|
|
118
|
+
ruruHTMLParts(_info, parts, extra) {
|
|
119
|
+
// extra.request gives you access to request details, so you can customize `parts` for the user
|
|
120
|
+
|
|
121
|
+
parts.metaTags += `<meta name="viewport" content="width=device-width, initial-scale=1" />`;
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
```
|
|
127
|
+
|
|
3
128
|
## 2.0.0-alpha.1
|
|
4
129
|
|
|
5
130
|
### Patch Changes
|