swc-plugin-minify-graphql 0.1.2 → 0.2.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.
package/LICENSE-MIT ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 hikiko4ern
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -6,9 +6,10 @@
6
6
 
7
7
  Since WASM plugins are not backward compatible (see [swc-project/swc#5060][swc-wasm-compat-issue], [Selecting the version - SWC][selecting-swc-core]), use the table below to select the correct plugin version:
8
8
 
9
- | plugin version | `swc_core` version |
10
- | :------------: | :------------------------------------------------------: |
11
- | `0.1` | [`0.98.0` - *](https://plugins.swc.rs/versions/range/16) |
9
+ | plugin version | used `swc_core` version | potentially compatible `swc_core` versions |
10
+ | -------------: | ----------------------: | :----------------------------------------- |
11
+ | `0.2` | `10.6.1` | `>=10` |
12
+ | `0.1` | `1.0.2` | `>=0.98.0 <10` |
12
13
 
13
14
  ## Usage
14
15
 
@@ -121,6 +122,17 @@ While the minified code may be correct in some cases, this usage is not intended
121
122
 
122
123
  - [`graphql-minify`](https://github.com/dan-lee/graphql-minify-rs): a re-implementation of [`stripIgnoredCharacters`](https://graphql-js.org/api/function/stripignoredcharacters/) from the [GraphQL.js reference implementation](https://github.com/graphql/graphql-js) in Rust
123
124
 
125
+ ## License
126
+
127
+ Licensed under either of
128
+
129
+ - The Unlicense
130
+ ([UNLICENSE](./UNLICENSE) or https://unlicense.org/UNLICENSE)
131
+ - MIT license
132
+ ([LICENSE-MIT](./LICENSE-MIT) or http://opensource.org/licenses/MIT)
133
+
134
+ at your option.
135
+
124
136
  <!-- links -->
125
137
 
126
138
  [GraphQL]: https://graphql.org
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swc-plugin-minify-graphql",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "GraphQL query and schema minimizer plugin for SWC",
5
5
  "keywords": [
6
6
  "swc-plugin",
@@ -8,20 +8,25 @@
8
8
  ],
9
9
  "main": "lib/swc_plugin_minify_graphql.wasm",
10
10
  "devDependencies": {
11
- "binaryen": "^119.0.0",
12
- "cspell": "^8.15.4",
13
- "dprint": "^0.47.4",
14
- "git-cliff": "^2.6.1",
15
- "lefthook": "^1.7.22",
16
- "npm-run-all2": "^7.0.0"
11
+ "@biomejs/biome": "^1.9.4",
12
+ "@types/node": "^22.10.7",
13
+ "binaryen": "^121.0.0",
14
+ "cspell": "^8.17.2",
15
+ "dprint": "^0.48.0",
16
+ "git-cliff": "^2.7.0",
17
+ "lefthook": "^1.10.10",
18
+ "npm-run-all2": "^7.0.2",
19
+ "typescript": "^5.7.3"
17
20
  },
18
21
  "files": [
19
22
  "README.md",
20
- "**/LICENSE",
23
+ "UNLICENSE",
24
+ "LICENSE-MIT",
25
+ "packages/graphql-minify/LICENSE",
21
26
  "lib/swc_plugin_minify_graphql.wasm"
22
27
  ],
23
28
  "preferUnplugged": true,
24
- "license": "Unlicense",
29
+ "license": "(Unlicense OR MIT)",
25
30
  "author": "hikiko4ern",
26
31
  "repository": {
27
32
  "type": "git",
@@ -36,6 +41,7 @@
36
41
  "version:gen-changelog": "git-cliff --bump -o",
37
42
  "version:cargo-version": "./utils/cargo_set_version.sh",
38
43
  "version:add-files": "git add Cargo.toml Cargo.lock CHANGELOG.md",
39
- "_watch": "cargo bin cargo-watch -w src -w packages/graphql-minify -w Cargo.lock -w Cargo.toml -w rust-toolchain.toml"
44
+ "_watch": "cargo bin cargo-watch -w src -w packages/graphql-minify -w packages/graphql_semantic_compare -w Cargo.lock -w Cargo.toml -w rust-toolchain.toml",
45
+ "fuzz": "pnpm --filter=\"swc-plugin-minify-graphql-fuzz\""
40
46
  }
41
47
  }
File without changes