eslint-plugin-graphile-export 1.0.0-rc.4 → 1.0.0

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.
Files changed (3) hide show
  1. package/README.md +2 -3
  2. package/package.json +2 -15
  3. package/CHANGELOG.md +0 -281
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # eslint-plugin-graphile-export
2
2
 
3
3
  [![GitHub Sponsors](https://img.shields.io/github/sponsors/benjie?color=ff69b4&label=github%20sponsors)](https://github.com/sponsors/benjie)
4
- [![Patreon sponsor button](https://img.shields.io/badge/sponsor-via%20Patreon-orange.svg)](https://patreon.com/benjie)
5
4
  [![Discord chat room](https://img.shields.io/discord/489127045289476126.svg)](http://discord.gg/graphile)
6
- [![Follow](https://img.shields.io/badge/twitter-@GraphileHQ-blue.svg)](https://twitter.com/GraphileHQ)
5
+ [![Follow](https://img.shields.io/badge/BSky-@Graphile.org-006aff.svg)](https://bsky.app/profile/graphile.org)
6
+ [![Follow](https://img.shields.io/badge/Mastodon-@Graphile.fosstodon.org-6364ff.svg)](https://fosstodon.org/@graphile)
7
7
 
8
8
  `eslint-plugin-schema-exporter` is an ESLint plugin to help ensure you've listed
9
9
  all your scopes for functions.
@@ -21,7 +21,6 @@ via sponsorship.
21
21
  And please give some love to our featured sponsors 🤩:
22
22
 
23
23
  <table><tr>
24
- <td align="center"><a href="https://www.the-guild.dev/"><img src="https://graphile.org/images/sponsors/theguild.png" width="90" height="90" alt="The Guild" /><br />The Guild</a> *</td>
25
24
  <td align="center"><a href="https://gosteelhead.com/"><img src="https://graphile.org/images/sponsors/steelhead.svg" width="90" height="90" alt="Steelhead" /><br />Steelhead</a> *</td>
26
25
  </tr></table>
27
26
 
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "eslint-plugin-graphile-export",
3
- "version": "1.0.0-rc.4",
3
+ "version": "1.0.0",
4
4
  "description": "ESLint plugin to help ensure your schema is exportable by graphile-export",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "scripts": {
8
- "prepack": "tsc -b"
9
- },
10
7
  "repository": {
11
8
  "type": "git",
12
9
  "url": "git+https://github.com/graphile/crystal.git"
@@ -35,15 +32,5 @@
35
32
  },
36
33
  "files": [
37
34
  "dist"
38
- ],
39
- "devDependencies": {
40
- "@babel/types": "^7.28.5",
41
- "@types/eslint": "^9.6.1",
42
- "@types/estree": "^1.0.8",
43
- "@types/jest": "^30.0.0",
44
- "@types/node": "^22.19.1",
45
- "jest": "^30.2.0",
46
- "ts-node": "^10.9.2",
47
- "typescript": "^5.9.3"
48
- }
35
+ ]
49
36
  }
package/CHANGELOG.md DELETED
@@ -1,281 +0,0 @@
1
- # eslint-plugin-graphile-export
2
-
3
- ## 1.0.0-rc.4
4
-
5
- ### Patch Changes
6
-
7
- - [`a3722d6`](https://github.com/graphile/crystal/commit/a3722d613bc6fb9e32f167aae9a31eaa422ceef1)
8
- Thanks [@benjie](https://github.com/benjie)! - Refactor to enable TypeScript
9
- options rewriteRelativeImportExtensions and erasableSyntaxOnly (including
10
- using .ts extensions in source code)
11
-
12
- ## 1.0.0-rc.3
13
-
14
- ### Patch Changes
15
-
16
- - [#2873](https://github.com/graphile/crystal/pull/2873)
17
- [`0772086`](https://github.com/graphile/crystal/commit/0772086411a55d56b4e345cff1eef133eee31b36)
18
- Thanks [@benjie](https://github.com/benjie)! - Update TypeScript configuration
19
- to support Node 22 minimum
20
-
21
- - [#2888](https://github.com/graphile/crystal/pull/2888)
22
- [`1a56db2`](https://github.com/graphile/crystal/commit/1a56db2f53bc455a3d3ba6555a2cd777b27b271c)
23
- Thanks [@benjaie](https://github.com/benjaie)! - Node v22+ is required for
24
- this module.
25
-
26
- ## 1.0.0-rc.2
27
-
28
- ### Patch Changes
29
-
30
- - [#2829](https://github.com/graphile/crystal/pull/2829)
31
- [`a82e6fa`](https://github.com/graphile/crystal/commit/a82e6fae099f7e9d62fb3fc1ee173368cdabca27)
32
- Thanks [@benjie](https://github.com/benjie)! - Update dependency ranges.
33
-
34
- ## 1.0.0-rc.1
35
-
36
- ### Patch Changes
37
-
38
- - [`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327)
39
- Thanks [@benjie](https://github.com/benjie)! - Bump to release candidate
40
-
41
- ## 0.0.2-beta.10
42
-
43
- ### Patch Changes
44
-
45
- - [#2634](https://github.com/graphile/crystal/pull/2634)
46
- [`598a912`](https://github.com/graphile/crystal/commit/598a9126a4081cea249c6000d51ae5a49d68e58d)
47
- Thanks [@benjie](https://github.com/benjie)! - Lint plugin now supports
48
- `build.EXPORTABLE` expressions.
49
-
50
- ## 0.0.2-beta.9
51
-
52
- ### Patch Changes
53
-
54
- - [#2585](https://github.com/graphile/crystal/pull/2585)
55
- [`63ab0fd`](https://github.com/graphile/crystal/commit/63ab0fd14a0eedd873267408c17f55f8046c304a)
56
- Thanks [@benjie](https://github.com/benjie)! - Minor tweak for updated deps.
57
-
58
- ## 0.0.2-beta.8
59
-
60
- ### Patch Changes
61
-
62
- - [#2574](https://github.com/graphile/crystal/pull/2574)
63
- [`ec25997a6a2557cde9aaa9e27eb202ad945b6015`](https://github.com/graphile/crystal/commit/ec25997a6a2557cde9aaa9e27eb202ad945b6015)
64
- Thanks [@benjie](https://github.com/benjie)! - Fix dependency ranges to allow
65
- ESLint 9
66
-
67
- ## 0.0.2-beta.7
68
-
69
- ### Patch Changes
70
-
71
- - [#2481](https://github.com/graphile/crystal/pull/2481)
72
- [`8c1dc528e3c03e2c2855adb7273319412f841c14`](https://github.com/graphile/crystal/commit/8c1dc528e3c03e2c2855adb7273319412f841c14)
73
- Thanks [@kzlar](https://github.com/kzlar)! - 🚨 Now uses a flat config for
74
- compatibility with ESLint v9.
75
-
76
- - [#2482](https://github.com/graphile/crystal/pull/2482)
77
- [`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37)
78
- Thanks [@benjie](https://github.com/benjie)! - Minimum version of Node.js
79
- bumped to Node 22 (the latest LTS).
80
-
81
- ## 0.0.2-beta.6
82
-
83
- ### Patch Changes
84
-
85
- - [#2377](https://github.com/graphile/crystal/pull/2377)
86
- [`7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7`](https://github.com/graphile/crystal/commit/7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7)
87
- Thanks [@benjie](https://github.com/benjie)! - Since `ModifierStep` and
88
- `BaseStep` are no more; `ExecutableStep` can be renamed to simply `Step`. The
89
- old name (`ExecutableStep`) is now deprecated.
90
-
91
- - [#2398](https://github.com/graphile/crystal/pull/2398)
92
- [`c041fd250372c57601188b65a6411c8f440afab6`](https://github.com/graphile/crystal/commit/c041fd250372c57601188b65a6411c8f440afab6)
93
- Thanks [@benjie](https://github.com/benjie)! - Since the following have been
94
- removed from Grafast, throw an error if they're seen in the schema:
95
- - `autoApplyAfterParentInputPlan`
96
- - `autoApplyAfterParentApplyPlan`
97
- - `autoApplyAfterParentPlan`
98
- - `autoApplyAfterParentSubscribePlan`
99
- - `inputPlan`
100
- - `applyPlan` on input fields
101
-
102
- Also: when Query type fails to build, throw the underlying error directly.
103
-
104
- - [#2376](https://github.com/graphile/crystal/pull/2376)
105
- [`da6f3c04efe3d8634c0bc3fcf93ac2518de85322`](https://github.com/graphile/crystal/commit/da6f3c04efe3d8634c0bc3fcf93ac2518de85322)
106
- Thanks [@benjie](https://github.com/benjie)! - Overhaul Grafast to remove more
107
- input planning - inputs should be evaluated at runtime - and remove more
108
- plan-time step evaluation.
109
-
110
- `FieldArgs.get` is no more; use `FieldArgs.getRaw` or use `bakedInput()`
111
- (TODO: document) to get the "baked" version of a raw input value.
112
-
113
- Input object fields no longer have `applyPlan`/`inputPlan`, instead having the
114
- runtime equivalents `apply()` and `baked()`. `FieldArgs` is no longer
115
- available on input object fields, since these fields are no longer called at
116
- plantime; instead, the actual value is passed.
117
-
118
- `FieldArgs` gains `.typeAt(path)` method that details the GraphQL input type
119
- at the given path.
120
-
121
- Field arguments are no longer passed `FieldArgs`, instead they're passed a
122
- (similar) `FieldArg` object representing the argument value itself.
123
-
124
- `autoApplyAfterParentPlan` is no more - instead if an argument has `applyPlan`
125
- it will be called automatically unless it was called during the field plan
126
- resolver itself.
127
-
128
- `autoApplyAfterParentSubscribePlan` is no more - instead if an argument has
129
- `applySubscribePlan` it will be called automatically unless it was called
130
- during the field plan resolver itself.
131
-
132
- Field arguments no longer support `inputPlan` - use `bakedInput()` if you need
133
- that.
134
-
135
- Input fields no longer support `inputPlan`, `applyPlan`,
136
- `autoApplyAfterParentInputPlan` nor `autoApplyAfterParentApplyPlan`. Instead,
137
- `apply()` (which is called by `applyStep()` at runtime) has been added.
138
-
139
- `sqlValueWithCodec(value, codec)` can be used at runtime in places where
140
- `$step.placeholder($value, codec)` would have been used previously.
141
- `placeholder` has been removed from all places that are now runtime - namely
142
- the list of modifiers below...
143
-
144
- The following `ModifierStep` classes have all dropped their `Step` suffix,
145
- these `Modifier` classes now all run at runtime, and are thus no longer steps;
146
- they're invoked as part of the new `applyInput()` (TODO: document) step:
147
- - `ModifierStep` &rArr; `Modifier`
148
- - `PgBooleanFilterStep` &rArr; `PgBooleanFilter`
149
- - `PgClassFilterStep` &rArr; `PgClassFilter`
150
- - `PgConditionCapableParentStep` &rArr; `PgConditionCapableParent`
151
- - `PgConditionLikeStep` &rArr; `PgConditionLike`
152
- - `PgConditionStepMode` &rArr; `PgConditionMode`
153
- - `PgConditionStep` &rArr; `PgCondition`
154
- - `PgManyFilterStep` &rArr; `PgManyFilter`
155
- - `PgOrFilterStep` &rArr; `PgOrFilter`
156
- - `PgTempTableStep` &rArr; `PgTempTable`
157
- - `SetterCapableStep` &rArr; `SetterCapable`
158
- - `SetterStep` &rArr; `Setter`
159
-
160
- (Interestingly, other than the removal of `placeholder` and the fact they deal
161
- with runtime values rather than steps now, they're very similar to what they
162
- were before.)
163
-
164
- The deprecated forms of the above have been removed.
165
-
166
- Methods that rely on these modifier plans have been removed:
167
- - `PgUnionAllStep.wherePlan` - use
168
- `fieldArg.apply($unionAll, qb => qb.whereBuilder())` instead
169
- - `PgUnionAllStep.havingPlan` - use
170
- `fieldArg.apply($unionAll, qb => qb.havingBuilder())` instead
171
- - Same for PgSelectStep
172
-
173
- The following gain query builders:
174
- - `PgInsertSingle`
175
- - `PgUpdateSingle`
176
- - `PgDeleteSingle`
177
-
178
- Query builders gain `meta`, an object that can be augmented with metadata
179
- about the operation (typically this relates to cursors and similar
180
- functionality). This is now used to implement `clientMutationId`.
181
-
182
- Extends query builders with additional functionality.
183
-
184
- Many of the types have had their generics changed, TypeScript should guide you
185
- if you have issues here.
186
-
187
- `NodeIdHandler` now requires a `getIdentifiers` method that runs at runtime
188
- and returns the identifiers from a decoded NodeId string.
189
-
190
- Types around GraphQL Global Object Identification (i.e. `Node` / `id`) have
191
- changed.
192
-
193
- ## 0.0.2-beta.5
194
-
195
- ### Patch Changes
196
-
197
- - [#2175](https://github.com/graphile/crystal/pull/2175)
198
- [`c69b2fdec`](https://github.com/graphile/crystal/commit/c69b2fdec2d73f1101440eb96fe126f9ad77db98)
199
- Thanks [@benjie](https://github.com/benjie)! - Fix 'Container is falsy' error
200
- message the latest Babel patch release would cause.
201
-
202
- ## 0.0.2-beta.4
203
-
204
- ### Patch Changes
205
-
206
- - [#1933](https://github.com/graphile/crystal/pull/1933)
207
- [`3a2ea80ee`](https://github.com/graphile/crystal/commit/3a2ea80ee470b2aef91366727d7d60a0c65067f5)
208
- Thanks [@mattiarossi](https://github.com/mattiarossi)! -
209
- `eslint-plugin-graphile-export` now spots instances of `inputPlan`,
210
- `applyPlan` and `assertStep` so they can be checked - thanks @mattiarossi!
211
-
212
- ## 0.0.2-beta.3
213
-
214
- ### Patch Changes
215
-
216
- - [#514](https://github.com/graphile/crystal-pre-merge/pull/514)
217
- [`c9848f693`](https://github.com/graphile/crystal-pre-merge/commit/c9848f6936a5abd7740c0638bfb458fb5551f03b)
218
- Thanks [@benjie](https://github.com/benjie)! - Update package.json repository
219
- information
220
-
221
- ## 0.0.2-beta.2
222
-
223
- ### Patch Changes
224
-
225
- - [#496](https://github.com/benjie/crystal/pull/496)
226
- [`c9bfd9892`](https://github.com/benjie/crystal/commit/c9bfd989247f9433fb5b18c5175c9d8d64cd21a1)
227
- Thanks [@benjie](https://github.com/benjie)! - Update dependencies (sometimes
228
- through major versions).
229
-
230
- ## 0.0.2-beta.1
231
-
232
- ### Patch Changes
233
-
234
- - [`cbd987385`](https://github.com/benjie/crystal/commit/cbd987385f99bd1248bc093ac507cc2f641ba3e8)
235
- Thanks [@benjie](https://github.com/benjie)! - Bump all packages to beta
236
-
237
- ## 0.0.2-alpha.3
238
-
239
- ### Patch Changes
240
-
241
- - [#406](https://github.com/benjie/crystal/pull/406)
242
- [`ecd7598f1`](https://github.com/benjie/crystal/commit/ecd7598f1a12c724e744249246eec7b882198a8a)
243
- Thanks [@benjie](https://github.com/benjie)! - More docs for graphile-export
244
-
245
- ## 0.0.2-alpha.2
246
-
247
- ### Patch Changes
248
-
249
- - [`7f857950a`](https://github.com/benjie/crystal/commit/7f857950a7e4ec763c936eb6bd1fb77824041d71)
250
- Thanks [@benjie](https://github.com/benjie)! - Upgrade to the latest
251
- TypeScript/tslib
252
-
253
- ## 0.0.2-alpha.1
254
-
255
- ### Patch Changes
256
-
257
- - [`759ad403d`](https://github.com/benjie/crystal/commit/759ad403d71363312c5225c165873ae84b8a098c)
258
- Thanks [@benjie](https://github.com/benjie)! - Alpha release - see
259
- https://postgraphile.org/news/2023-04-26-version-5-alpha
260
-
261
- ## 0.0.2-1.1
262
-
263
- ### Patch Changes
264
-
265
- - [#260](https://github.com/benjie/crystal/pull/260)
266
- [`d5312e6b9`](https://github.com/benjie/crystal/commit/d5312e6b968fbeb46d074b82a41b4bdbc166598c)
267
- Thanks [@benjie](https://github.com/benjie)! - TypeScript v5 is now required
268
-
269
- ## 0.0.2-0.1
270
-
271
- ### Patch Changes
272
-
273
- - [`0ab95d0b1`](undefined) - Update sponsors.
274
-
275
- ## 0.0.2-0.0
276
-
277
- ### Patch Changes
278
-
279
- - [#125](https://github.com/benjie/crystal/pull/125)
280
- [`91f2256b3`](https://github.com/benjie/crystal/commit/91f2256b3fd699bec19fc86f1ca79df057e58639)
281
- Thanks [@benjie](https://github.com/benjie)! - Initial changesets release