Skip to content

Commit 6ec8e86

Browse files
committed
upgrade to sury
1 parent 3406f1d commit 6ec8e86

12 files changed

+39
-40
lines changed

rewatch/testrepo/packages/with-ppx/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"dependencies": {
1010
"rescript-nodejs": "16.1.0",
11-
"rescript-schema": "9.3.0-rescript12.0",
12-
"rescript-schema-ppx": "9.0.1"
11+
"sury": "^11.0.0-alpha.2",
12+
"sury-ppx": "^11.0.0-alpha.2"
1313
}
1414
}

rewatch/testrepo/packages/with-ppx/rescript.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
"dir": "src"
66
}
77
],
8-
"dependencies": ["rescript-nodejs", "rescript-schema"],
8+
"dependencies": ["rescript-nodejs", "sury"],
99
"package-specs": {
1010
"module": "es6",
1111
"in-source": true
1212
},
1313
"suffix": ".res.js",
14-
"compiler-flags": ["-open RescriptSchema"],
15-
"ppx-flags": ["rescript-schema-ppx/bin"]
14+
"ppx-flags": ["sury-ppx/bin"]
1615
}

rewatch/testrepo/packages/with-ppx/src/FileWithPpx.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Generated by ReScript, PLEASE EDIT WITH CARE
22

3-
import * as S$RescriptSchema from "rescript-schema/src/S.mjs";
3+
import * as S from "sury/src/S.mjs";
44

5-
let schema = S$RescriptSchema.schema(s => ({
6-
foo: s.m(S$RescriptSchema.string)
5+
let schema = S.schema(s => ({
6+
foo: s.m(S.string)
77
}));
88

9-
let foo = S$RescriptSchema.parseOrThrow("{ \"foo\": \"bar\" }", schema);
9+
let foo = S.parseOrThrow("{ \"foo\": \"bar\" }", schema);
1010

1111
console.log(foo);
1212

rewatch/testrepo/yarn.lock

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ __metadata:
128128
resolution: "@testrepo/with-ppx@workspace:packages/with-ppx"
129129
dependencies:
130130
rescript-nodejs: "npm:16.1.0"
131-
rescript-schema: "npm:9.3.0-rescript12.0"
132-
rescript-schema-ppx: "npm:9.0.1"
131+
sury: "npm:^11.0.0-alpha.2"
132+
sury-ppx: "npm:^11.0.0-alpha.2"
133133
languageName: unknown
134134
linkType: soft
135135

@@ -140,27 +140,6 @@ __metadata:
140140
languageName: node
141141
linkType: hard
142142

143-
"rescript-schema-ppx@npm:9.0.1":
144-
version: 9.0.1
145-
resolution: "rescript-schema-ppx@npm:9.0.1"
146-
peerDependencies:
147-
rescript-schema: 9.x
148-
checksum: 10c0/c6f95183d3c138f1b1c1110314480c3601366010bbd406f6ab8876e1eef9ab64f87109bda1467801f9905ff30b81c3bf1c6c11ea8bb1ca5ceb801012b0bab39e
149-
languageName: node
150-
linkType: hard
151-
152-
"rescript-schema@npm:9.3.0-rescript12.0":
153-
version: 9.3.0-rescript12.0
154-
resolution: "rescript-schema@npm:9.3.0-rescript12.0"
155-
peerDependencies:
156-
rescript: ^12.0.0-alpha.8
157-
peerDependenciesMeta:
158-
rescript:
159-
optional: true
160-
checksum: 10c0/61dc401034ea310233c531d91ab2ce688644bd255f6dc98c42d632a082639fd5501ac4a97ab53982c56845b0296da2c7d4ff07542878a5eef8a90db2451b4c2e
161-
languageName: node
162-
linkType: hard
163-
164143
"rescript@npm:12.0.0-beta.1, rescript@npm:^12.0.0-alpha.13":
165144
version: 12.0.0-beta.1
166145
resolution: "rescript@npm:12.0.0-beta.1"
@@ -191,6 +170,27 @@ __metadata:
191170
languageName: node
192171
linkType: hard
193172

173+
"sury-ppx@npm:^11.0.0-alpha.2":
174+
version: 11.0.0-alpha.2
175+
resolution: "sury-ppx@npm:11.0.0-alpha.2"
176+
peerDependencies:
177+
sury: ^11.0.0-alpha.2
178+
checksum: 10c0/ae9190fa4e406de46e88b67db233e757db36f5377301227cf5b084b5b81d360725d6fc4781e24c56cb87476cd3a42af5acc0cfc49f0c7ea17435caf065ba22ab
179+
languageName: node
180+
linkType: hard
181+
182+
"sury@npm:^11.0.0-alpha.2":
183+
version: 11.0.0-alpha.2
184+
resolution: "sury@npm:11.0.0-alpha.2"
185+
peerDependencies:
186+
rescript: 11.x
187+
peerDependenciesMeta:
188+
rescript:
189+
optional: true
190+
checksum: 10c0/254dd708608b125defc6b4be0f038df0f6704290df60504b70b7cd613f1e840d150ff65a3f23dbc7213f2b18b86fdc60400b4361ca46f5c86bbe7360eff9c84a
191+
languageName: node
192+
linkType: hard
193+
194194
"testrepo@workspace:.":
195195
version: 0.0.0-use.local
196196
resolution: "testrepo@workspace:."

rewatch/tests/snapshots/bs-dev-dependency-used-by-non-dev-source.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Cleaned 0/64
1+
Cleaned 0/67
22
Parsed 2 source files
33
Compiled 2 modules
44

rewatch/tests/snapshots/dependency-cycle.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Cleaned 0/64
1+
Cleaned 0/67
22
Parsed 1 source files
33
Compiled 0 modules
44

rewatch/tests/snapshots/remove-file.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Cleaned 1/64
1+
Cleaned 1/67
22
Parsed 0 source files
33
Compiled 1 modules
44

rewatch/tests/snapshots/rename-file-internal-dep-namespace.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Cleaned 2/64
1+
Cleaned 2/67
22
Parsed 2 source files
33
Compiled 3 modules
44

rewatch/tests/snapshots/rename-file-internal-dep.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Cleaned 2/64
1+
Cleaned 2/67
22
Parsed 2 source files
33
Compiled 2 modules
44

rewatch/tests/snapshots/rename-file-with-interface.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
 No implementation file found for interface file (skipping): src/ModuleWithInterface.resi
2-
Cleaned 2/64
2+
Cleaned 2/67
33
Parsed 1 source files
44
Compiled 2 modules
55

0 commit comments

Comments
 (0)