Skip to content

Commit 3634391

Browse files
authored
update some npm dependencies and remove some others (#151)
1 parent a704313 commit 3634391

File tree

29 files changed

+8757
-5369
lines changed

29 files changed

+8757
-5369
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ jobs:
88
steps:
99
- uses: actions/checkout@v4
1010

11-
- uses: purescript-contrib/setup-purescript@main
11+
- uses: actions/setup-node@v6
1212
with:
13-
purescript: 0.15.15
14-
psa: 0.8.2
15-
spago: unstable
13+
node-version: 22
1614

1715
- name: Cache PureScript dependencies
1816
uses: actions/cache@v4
@@ -23,7 +21,7 @@ jobs:
2321
# have changed. If you do not want to cache compiled output, remove
2422
# the `output` path.
2523
with:
26-
key: k1-${{ runner.os }}-spago-${{ hashFiles('**/*.lock') }}
24+
key: k2-${{ runner.os }}-spago-${{ hashFiles('**/*.lock') }}
2725
path: |
2826
.spago
2927
output
@@ -56,9 +54,10 @@ jobs:
5654
examples/13-error-boundaries/.spago
5755
examples/13-error-boundaries/output
5856
59-
- run: spago build
6057
- run: npm i
58+
- run: npm exec spago build
6159
- run: npm run bundle
60+
6261
- run: npm t
6362

6463
- name: Run Example Tests

codegen/schema/get-gql-schema.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fetch from "node-fetch";
21
import { getIntrospectionQuery } from "graphql";
32

43
export async function getGqlSchema({ moduleName, cache, url, token }) {

codegen/schema/index.mjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1+
import fs from "node:fs/promises";
12
import { writePursSchemas } from "./write-purs-schema.mjs";
23
import { getGqlSchema } from "./get-gql-schema.mjs";
3-
import { promisify } from "util";
4-
import mkdirp from "mkdirp";
5-
import rimraf from "rimraf";
6-
const rm = promisify(rimraf);
4+
const mkdirp = (path) => fs.mkdir(path, { recursive: true });
75

86
export async function generateSchemas(opts, gqlEndpoints) {
97
if (!Array.isArray(gqlEndpoints)) {
108
gqlEndpoints = [gqlEndpoints];
119
}
12-
await rm(opts.dir);
10+
await fs.rm(opts.dir, { recursive: true, force: true });
1311
await mkdirp(opts.dir);
1412
await mkdirp(opts.dir + "/Schema");
1513
await mkdirp(opts.dir + "/Enum");

e2e/1-affjax/package-lock.json

Lines changed: 8 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/1-affjax/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"express": "^4.17.1",
1717
"express-graphql": "^0.12.0",
1818
"graphql": "^15.4.0",
19-
"isomorphic-ws": "^5.0.0",
20-
"xhr2": "^0.2.0"
19+
"xhr2": "^0.2.1"
2120
}
2221
}

e2e/2-comments/package-lock.json

Lines changed: 1 addition & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/2-comments/package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
"console": "^0.7.2",
1818
"express": "4.17.1",
1919
"express-graphql": "0.12.0",
20-
"graphql": "15.4.0",
21-
"isomorphic-ws": "^5.0.0",
22-
"mkdirp": "1.0.4",
23-
"rimraf": "3.0.2",
24-
"xhr2": "0.2.0"
20+
"graphql": "15.4.0"
2521
},
2622
"devDependencies": {
2723
"exec-sh": "^0.4.0"

examples/1-simple/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
"express": "^4.17.1",
1818
"express-graphql": "^0.12.0",
1919
"graphql": "^15.4.0",
20-
"graphql-ws": "^6.0.4",
21-
"isomorphic-unfetch": "^4.0.2",
22-
"isomorphic-ws": "^5.0.0",
23-
"xhr2": "^0.2.0"
20+
"graphql-ws": "^6.0.4"
2421
},
2522
"devDependencies": {
2623
"exec-sh": "^0.4.0"

examples/10-aliases/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
"express": "^4.17.1",
1818
"express-graphql": "^0.12.0",
1919
"graphql": "^15.4.0",
20-
"graphql-ws": "^6.0.4",
21-
"isomorphic-unfetch": "^4.0.2",
22-
"isomorphic-ws": "^5.0.0",
23-
"xhr2": "^0.2.0"
20+
"graphql-ws": "^6.0.4"
2421
},
2522
"devDependencies": {
2623
"exec-sh": "^0.4.0"

examples/11-unions/package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
"console": "^0.7.2",
1818
"express": "4.17.1",
1919
"express-graphql": "0.12.0",
20-
"graphql": "15.4.0",
21-
"isomorphic-ws": "^5.0.0",
22-
"mkdirp": "1.0.4",
23-
"rimraf": "3.0.2",
24-
"xhr2": "0.2.0"
20+
"graphql": "15.4.0"
2521
},
2622
"devDependencies": {
2723
"exec-sh": "^0.4.0"

0 commit comments

Comments
 (0)