@constructive-io/pnpm-policy-graphile 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 +21 -0
- package/README.md +76 -0
- package/inventory.json +23 -0
- package/package.json +47 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Constructive <developers@constructive.io>
|
|
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
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# @constructive-io/pnpm-policy-graphile
|
|
2
|
+
|
|
3
|
+
Release-age exemptions for the Graphile packages Constructive runs.
|
|
4
|
+
|
|
5
|
+
Pair it with `@constructive-io/pnpm-policy` (our own packages) in any workspace that consumes Graphile:
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
inventory:
|
|
9
|
+
- "@constructive-io/pnpm-policy"
|
|
10
|
+
- "@constructive-io/pnpm-policy-graphile"
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`pnpm-policy` merges the two, and `intersect: true` narrows the result to whatever that workspace's lockfile actually resolves — so a repo with no Graphile dependency emits none of these names.
|
|
14
|
+
|
|
15
|
+
## Why this is a list and not a maintainer query
|
|
16
|
+
|
|
17
|
+
The obvious way to exempt an upstream is to add its npm account under `maintainers`. That is what we did first, and it was wrong.
|
|
18
|
+
|
|
19
|
+
`maintainers` exempts **everything the account publishes**, and the account that publishes the Graphile stack also co-maintains `graphql` — the reference implementation — along with `graphiql`, `monaco-graphql`, and `graphql-language-service`. Those swept into our exemption list, so the most widely depended-upon package in the JavaScript ecosystem was skipping the quarantine. Worse, `graphql` has six maintainers, so a compromise of *any* of those accounts would have published a release that installed immediately, with no wait.
|
|
20
|
+
|
|
21
|
+
An account is a delegation as wide as everything that account will ever touch. That is fine for accounts we control and wrong for anyone who also maintains popular upstream software.
|
|
22
|
+
|
|
23
|
+
So this package enumerates package names instead. Nothing is exempt unless it is written down here.
|
|
24
|
+
|
|
25
|
+
## How the list is derived
|
|
26
|
+
|
|
27
|
+
1. Take every package the Constructive workspaces resolve (read from their lockfiles, so transitive dependencies are included — not just direct ones).
|
|
28
|
+
2. Keep the ones whose npm `repository` points at a Graphile-owned repository (`github.com/graphile/*`, `github.com/graphile-contrib/*`).
|
|
29
|
+
3. Drop everything else, including packages that merely look Graphile-adjacent.
|
|
30
|
+
|
|
31
|
+
Step 2 is the whole test, and it is checkable: `npm view <pkg> repository.url`. `graphql`, `graphiql`, `monaco-graphql`, `graphql-language-service`, `@graphiql/*`, `graphql-tag`, `graphql-upload` and `graphql-ws` all fail it — they belong to `graphql/graphql-js`, `graphql/graphiql`, Apollo, and individual authors. They wait like any other third-party dependency.
|
|
32
|
+
|
|
33
|
+
The current list is the union across `constructive` and `constructive-db`, which independently resolve the same 16 packages.
|
|
34
|
+
|
|
35
|
+
Scope globs are deliberately **not** used. `@graphile/*` or `@dataplan/*` would exempt anything published into those scopes in the future, which is the same open-ended delegation as a maintainer entry, just smaller. Names cost a line each and say exactly what was decided.
|
|
36
|
+
|
|
37
|
+
## Updating it
|
|
38
|
+
|
|
39
|
+
Adding a Graphile dependency that is not listed here means the install waits out the quarantine. Add the name, note why it is needed, and confirm its `repository` is Graphile-owned before merging. That review is the point: this file is a trust boundary, and it should be as boring and explicit as one.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Development
|
|
44
|
+
|
|
45
|
+
### Setup
|
|
46
|
+
|
|
47
|
+
1. Clone the repository:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
git clone https://github.com/constructive-io/dev-utils.git
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
2. Install dependencies:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
cd dev-utils
|
|
57
|
+
pnpm install
|
|
58
|
+
pnpm build
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
3. Test the package of interest:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
cd packages/<packagename>
|
|
65
|
+
pnpm test:watch
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Credits
|
|
69
|
+
|
|
70
|
+
**🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
|
|
71
|
+
|
|
72
|
+
## Disclaimer
|
|
73
|
+
|
|
74
|
+
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
|
|
75
|
+
|
|
76
|
+
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
|
package/inventory.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generatedAt": "2026-08-06T08:25:26.000Z",
|
|
3
|
+
"maintainers": [],
|
|
4
|
+
"scopes": [],
|
|
5
|
+
"packages": [
|
|
6
|
+
"@dataplan/json",
|
|
7
|
+
"@dataplan/pg",
|
|
8
|
+
"@graphile-contrib/pg-many-to-many",
|
|
9
|
+
"@graphile/lru",
|
|
10
|
+
"grafast",
|
|
11
|
+
"grafserv",
|
|
12
|
+
"graphile-build",
|
|
13
|
+
"graphile-build-pg",
|
|
14
|
+
"graphile-config",
|
|
15
|
+
"graphile-utils",
|
|
16
|
+
"pg-introspection",
|
|
17
|
+
"pg-sql2",
|
|
18
|
+
"postgraphile",
|
|
19
|
+
"ruru",
|
|
20
|
+
"ruru-types",
|
|
21
|
+
"tamedevil"
|
|
22
|
+
]
|
|
23
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@constructive-io/pnpm-policy-graphile",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"author": "Constructive <developers@constructive.io>",
|
|
5
|
+
"description": "Release-age exemptions for the Graphile packages Constructive runs — a reviewed allowlist, not a maintainer query",
|
|
6
|
+
"homepage": "https://github.com/constructive-io/dev-utils",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./inventory.json": "./inventory.json",
|
|
10
|
+
"./package.json": "./package.json"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"inventory.json",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public",
|
|
19
|
+
"directory": "dist"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/constructive-io/dev-utils"
|
|
24
|
+
},
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/constructive-io/dev-utils/issues"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"clean": "makage clean",
|
|
30
|
+
"copy": "makage assets",
|
|
31
|
+
"build": "makage clean && makage copy inventory.json dist --flat && makage assets",
|
|
32
|
+
"prepublishOnly": "npm run build",
|
|
33
|
+
"test": "node test.js"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"makage": "0.1.10"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"pnpm",
|
|
40
|
+
"pnpm-policy",
|
|
41
|
+
"supply-chain",
|
|
42
|
+
"minimumReleaseAge",
|
|
43
|
+
"graphile",
|
|
44
|
+
"inventory"
|
|
45
|
+
],
|
|
46
|
+
"gitHead": "070bc417e718a3bc602aa79a7aa186c3ac64cd70"
|
|
47
|
+
}
|