@kaiko.io/rescript-deser 4.0.1 → 5.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.
package/lib/bs/.bsdeps CHANGED
@@ -1,8 +1,9 @@
1
- 11.0.1
1
+ 11.1.4
2
2
  /home/manu/src/kaiko/rescript-deser
3
3
  0
4
+ 0
4
5
  rescript.json 0x1.9683f1e3d1a58p+30
5
6
  tests 0x1.93fb8b23e3f01p+30
6
7
  src/ 0x1.9683f1e026f57p+30
7
8
  ===
8
- /home/manu/src/kaiko/rescript-deser/node_modules/rescript/linux/rescript.exe 0x1.96d01e2c2d0e1p+30
9
+ /home/manu/src/kaiko/rescript-deser/node_modules/rescript/linux/rescript.exe 0x1.9bfaa0e1df3b2p+30
@@ -1,2 +1,2 @@
1
- #Start(1706378040946)
2
- #Done(1706378040985)
1
+ #Start(1730814547247)
2
+ #Done(1730814547247)
package/lib/bs/.ninja_log CHANGED
@@ -1,19 +1,19 @@
1
1
  # ninja log v6
2
- 0 7 1706378040949380595 tests/QUnit.ast af3c1d133af8065f
3
- 0 7 1706378040949380595 tests/index.ast 8925843b839ec685
4
- 0 8 1706378040952714035 src/JSON.ast 1f40eb0073c270c8
5
- 7 9 1706378040952714035 tests/QUnit.d 4a2631c992d93ce7
6
- 7 9 1706378040952714035 tests/index.d 5a4db9cdecd186b3
7
- 9 11 1706378040956047475 src/JSON.d cd2d6773c781340f
8
- 9 16 1706378040959380914 tests/QUnit.cmj 5354e63b10bde4e4
9
- 9 16 1706378040959380914 tests/QUnit.cmi 5354e63b10bde4e4
10
- 9 16 1706378040959380914 ../es6/tests/QUnit.js 5354e63b10bde4e4
11
- 9 16 1706378040959380914 ../js/tests/QUnit.js 5354e63b10bde4e4
12
- 11 28 1706378040972714674 src/JSON.cmj 99e7ea04a0de5a6d
13
- 11 28 1706378040972714674 src/JSON.cmi 99e7ea04a0de5a6d
14
- 11 28 1706378040972714674 ../es6/src/JSON.js 99e7ea04a0de5a6d
15
- 11 28 1706378040972714674 ../js/src/JSON.js 99e7ea04a0de5a6d
16
- 28 39 1706378040982714994 tests/index.cmj 1624a985d04a2413
17
- 28 39 1706378040982714994 tests/index.cmi 1624a985d04a2413
18
- 28 39 1706378040982714994 ../es6/tests/index.js 1624a985d04a2413
19
- 28 39 1706378040982714994 ../js/tests/index.js 1624a985d04a2413
2
+ 0 5 1730814327787200781 tests/QUnit.ast 57ee93358e339a9a
3
+ 0 5 1730814327787200781 tests/index.ast dc1dfb2fd51740e6
4
+ 5 7 1730814327790534214 tests/QUnit.d 4a2631c992d93ce7
5
+ 5 7 1730814327790534214 tests/index.d 5a4db9cdecd186b3
6
+ 0 7 1730814327790534214 src/JSON.ast 649b5b6311a6b7e3
7
+ 7 9 1730814327790534214 src/JSON.d cd2d6773c781340f
8
+ 7 14 1730814327797201080 tests/QUnit.cmj e668f43fbb8ee318
9
+ 7 14 1730814327797201080 tests/QUnit.cmi e668f43fbb8ee318
10
+ 7 14 1730814327797201080 ../es6/tests/QUnit.js e668f43fbb8ee318
11
+ 7 14 1730814327797201080 ../js/tests/QUnit.js e668f43fbb8ee318
12
+ 9 27 1730814327810534813 src/JSON.cmj 5528d45e9269dbc7
13
+ 9 27 1730814327810534813 src/JSON.cmi 5528d45e9269dbc7
14
+ 9 27 1730814327810534813 ../es6/src/JSON.js 5528d45e9269dbc7
15
+ 9 27 1730814327810534813 ../js/src/JSON.js 5528d45e9269dbc7
16
+ 27 40 1730814327823868546 tests/index.cmj 2318094a30b68775
17
+ 27 40 1730814327823868546 tests/index.cmi 2318094a30b68775
18
+ 27 40 1730814327823868546 ../es6/tests/index.js 2318094a30b68775
19
+ 27 40 1730814327823868546 ../js/tests/index.js 2318094a30b68775
@@ -1,14 +1,14 @@
1
1
  rescript = 1
2
2
  g_finger := /home/manu/src/kaiko/rescript-deser/node_modules/@kaiko.io/rescript-prelude/lib/ocaml/install.stamp
3
3
  rule astj
4
- command = /home/manu/src/kaiko/rescript-deser/node_modules/rescript/linux/bsc.exe -warn-error +8+11+26+27+33+56 -bs-v 11.0.1 -uncurried -absname -bs-ast -o $out $i
4
+ command = /home/manu/src/kaiko/rescript-deser/node_modules/rescript/linux/bsc.exe -warn-error +8+11+26+27+33+56 -bs-v 11.1.4 -uncurried -absname -bs-ast -o $out $i
5
5
  o tests/index.ast : astj ../../tests/index.res
6
6
  rule deps_dev
7
7
  command = /home/manu/src/kaiko/rescript-deser/node_modules/rescript/linux/bsb_helper.exe -g -hash 84aecc33f8594375b23a1a137b057f93 $in
8
8
  restat = 1
9
9
  o tests/index.d : deps_dev tests/index.ast
10
10
  rule mij_dev
11
- command = /home/manu/src/kaiko/rescript-deser/node_modules/rescript/linux/bsc.exe -I tests -I src/ -I /home/manu/src/kaiko/rescript-deser/node_modules/@kaiko.io/rescript-prelude/lib/ocaml -warn-error +8+11+26+27+33+56 -uncurried -bs-package-name @kaiko.io/rescript-deser -bs-package-output commonjs:lib/js/$in_d:.js -bs-package-output es6:lib/es6/$in_d:.js -bs-v $g_finger $i
11
+ command = /home/manu/src/kaiko/rescript-deser/node_modules/rescript/linux/bsc.exe -I tests -I src/ -I /home/manu/src/kaiko/rescript-deser/node_modules/@kaiko.io/rescript-prelude/lib/ocaml -warn-error +8+11+26+27+33+56 -uncurried -bs-package-name @kaiko.io/rescript-deser -bs-package-output commonjs:lib/js/$in_d:.js -bs-package-output esmodule:lib/es6/$in_d:.js -bs-v $g_finger $i
12
12
  dyndep = 1
13
13
  restat = 1
14
14
  o tests/index.cmj tests/index.cmi ../es6/tests/index.js ../js/tests/index.js : mij_dev tests/index.ast
@@ -21,7 +21,7 @@ rule deps
21
21
  restat = 1
22
22
  o src/JSON.d : deps src/JSON.ast
23
23
  rule mij
24
- command = /home/manu/src/kaiko/rescript-deser/node_modules/rescript/linux/bsc.exe -I src/ -I /home/manu/src/kaiko/rescript-deser/node_modules/@kaiko.io/rescript-prelude/lib/ocaml -warn-error +8+11+26+27+33+56 -uncurried -bs-package-name @kaiko.io/rescript-deser -bs-package-output commonjs:lib/js/$in_d:.js -bs-package-output es6:lib/es6/$in_d:.js -bs-v $g_finger $i
24
+ command = /home/manu/src/kaiko/rescript-deser/node_modules/rescript/linux/bsc.exe -I src/ -I /home/manu/src/kaiko/rescript-deser/node_modules/@kaiko.io/rescript-prelude/lib/ocaml -warn-error +8+11+26+27+33+56 -uncurried -bs-package-name @kaiko.io/rescript-deser -bs-package-output commonjs:lib/js/$in_d:.js -bs-package-output esmodule:lib/es6/$in_d:.js -bs-v $g_finger $i
25
25
  dyndep = 1
26
26
  restat = 1
27
27
  o src/JSON.cmj src/JSON.cmi ../es6/src/JSON.js ../js/src/JSON.js : mij src/JSON.ast
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -426,11 +426,7 @@ function fromUntagged(untagged, _shape, self) {
426
426
  exit = 1;
427
427
  } else {
428
428
  if (match.TAG === "JSONArray") {
429
- return Prelude.$$Array.keepSome(match._0.map((function(shape){
430
- return function (param) {
431
- return Curry._1(shape._0.fromJSON, param);
432
- }
433
- }(shape))).map(Prelude.Result.warn)).map(function (prim) {
429
+ return Prelude.$$Array.keepSome(match._0.map(shape._0.fromJSON).map(Prelude.Result.warn)).map(function (prim) {
434
430
  return prim;
435
431
  });
436
432
  }
@@ -493,14 +489,6 @@ function checkFieldsSanity(name, _fields, _optional) {
493
489
  var exit = 0;
494
490
  if (typeof fields !== "object") {
495
491
  switch (fields) {
496
- case "Any" :
497
- case "Boolean" :
498
- case "Date" :
499
- case "Datetime" :
500
- return {
501
- TAG: "Ok",
502
- _0: undefined
503
- };
504
492
  case "Self" :
505
493
  if (optional) {
506
494
  return {
@@ -557,11 +545,6 @@ function checkFieldsSanity(name, _fields, _optional) {
557
545
  case "DefaultWhenInvalid" :
558
546
  exit = 1;
559
547
  break;
560
- case "Morphism" :
561
- return {
562
- TAG: "Ok",
563
- _0: undefined
564
- };
565
548
  default:
566
549
  return {
567
550
  TAG: "Ok",
@@ -427,11 +427,7 @@ function fromUntagged(untagged, _shape, self) {
427
427
  exit = 1;
428
428
  } else {
429
429
  if (match.TAG === "JSONArray") {
430
- return Prelude.$$Array.keepSome(match._0.map((function(shape){
431
- return function (param) {
432
- return Curry._1(shape._0.fromJSON, param);
433
- }
434
- }(shape))).map(Prelude.Result.warn)).map(function (prim) {
430
+ return Prelude.$$Array.keepSome(match._0.map(shape._0.fromJSON).map(Prelude.Result.warn)).map(function (prim) {
435
431
  return prim;
436
432
  });
437
433
  }
@@ -494,14 +490,6 @@ function checkFieldsSanity(name, _fields, _optional) {
494
490
  var exit = 0;
495
491
  if (typeof fields !== "object") {
496
492
  switch (fields) {
497
- case "Any" :
498
- case "Boolean" :
499
- case "Date" :
500
- case "Datetime" :
501
- return {
502
- TAG: "Ok",
503
- _0: undefined
504
- };
505
493
  case "Self" :
506
494
  if (optional) {
507
495
  return {
@@ -558,11 +546,6 @@ function checkFieldsSanity(name, _fields, _optional) {
558
546
  case "DefaultWhenInvalid" :
559
547
  exit = 1;
560
548
  break;
561
- case "Morphism" :
562
- return {
563
- TAG: "Ok",
564
- _0: undefined
565
- };
566
549
  default:
567
550
  return {
568
551
  TAG: "Ok",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaiko.io/rescript-deser",
3
- "version": "4.0.1",
3
+ "version": "5.0.0",
4
4
  "keywords": [
5
5
  "json",
6
6
  "deserializer",
@@ -19,12 +19,14 @@
19
19
  "rescript.json",
20
20
  "README.md"
21
21
  ],
22
- "dependencies": {
23
- "@kaiko.io/rescript-prelude": "^7.0.0"
22
+ "peerDependencies": {
23
+ "@kaiko.io/rescript-prelude": ">=7.2.0",
24
+ "rescript": ">=11.1.0"
24
25
  },
25
26
  "devDependencies": {
26
- "esbuild": "^0.15.7",
27
- "qunit": "^2.16.0",
28
- "rescript": "^11.0.0"
27
+ "@kaiko.io/rescript-prelude": "7.2.0",
28
+ "esbuild": "0.15.7",
29
+ "qunit": "2.16.0",
30
+ "rescript": "11.1.4"
29
31
  }
30
32
  }