decoders 1.25.5 → 1.26.0-beta2

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/{array.js → cjs/array.js} +5 -5
  3. package/{array.js.flow → cjs/array.js.flow} +1 -1
  4. package/{boolean.js → cjs/boolean.js} +3 -3
  5. package/{boolean.js.flow → cjs/boolean.js.flow} +1 -1
  6. package/{constants.js → cjs/constants.js} +6 -6
  7. package/{constants.js.flow → cjs/constants.js.flow} +1 -1
  8. package/{date.js → cjs/date.js} +2 -2
  9. package/{date.js.flow → cjs/date.js.flow} +1 -1
  10. package/{describe.js → cjs/describe.js} +0 -0
  11. package/{describe.js.flow → cjs/describe.js.flow} +0 -0
  12. package/{dispatch.js → cjs/dispatch.js} +0 -0
  13. package/{dispatch.js.flow → cjs/dispatch.js.flow} +0 -0
  14. package/{either.js → cjs/either.js} +6 -6
  15. package/{either.js.flow → cjs/either.js.flow} +1 -1
  16. package/{fail.js → cjs/fail.js} +2 -2
  17. package/{fail.js.flow → cjs/fail.js.flow} +1 -1
  18. package/{guard.js → cjs/guard.js} +0 -0
  19. package/{guard.js.flow → cjs/guard.js.flow} +0 -0
  20. package/{index.js → cjs/index.js} +0 -0
  21. package/{index.js.flow → cjs/index.js.flow} +0 -0
  22. package/{instanceOf.js → cjs/instanceOf.js} +2 -2
  23. package/{instanceOf.js.flow → cjs/instanceOf.js.flow} +1 -1
  24. package/{json.js → cjs/json.js} +0 -0
  25. package/{json.js.flow → cjs/json.js.flow} +0 -0
  26. package/{lazy.js → cjs/lazy.js} +0 -0
  27. package/{lazy.js.flow → cjs/lazy.js.flow} +0 -0
  28. package/{mapping.js → cjs/mapping.js} +3 -3
  29. package/{mapping.js.flow → cjs/mapping.js.flow} +1 -1
  30. package/{number.js → cjs/number.js} +2 -2
  31. package/{number.js.flow → cjs/number.js.flow} +1 -1
  32. package/{object.js → cjs/object.js} +7 -7
  33. package/{object.js.flow → cjs/object.js.flow} +1 -1
  34. package/{optional.js → cjs/optional.js} +3 -3
  35. package/{optional.js.flow → cjs/optional.js.flow} +1 -1
  36. package/{string.js → cjs/string.js} +5 -5
  37. package/{string.js.flow → cjs/string.js.flow} +1 -1
  38. package/{tuple.js → cjs/tuple.js} +13 -13
  39. package/{tuple.js.flow → cjs/tuple.js.flow} +1 -1
  40. package/cjs/types.js +3 -0
  41. package/{types.js.flow → cjs/types.js.flow} +1 -1
  42. package/{utils.js → cjs/utils.js} +4 -4
  43. package/{utils.js.flow → cjs/utils.js.flow} +1 -1
  44. package/es/index.js +1039 -0
  45. package/package.json +9 -5
  46. package/{array.d.ts → ts/array.d.ts} +0 -0
  47. package/{boolean.d.ts → ts/boolean.d.ts} +0 -0
  48. package/{constants.d.ts → ts/constants.d.ts} +0 -0
  49. package/{date.d.ts → ts/date.d.ts} +0 -0
  50. package/{describe.d.ts → ts/describe.d.ts} +0 -0
  51. package/{dispatch.d.ts → ts/dispatch.d.ts} +0 -0
  52. package/{either.d.ts → ts/either.d.ts} +0 -0
  53. package/{fail.d.ts → ts/fail.d.ts} +0 -0
  54. package/{guard.d.ts → ts/guard.d.ts} +0 -0
  55. package/{helpers.d.ts → ts/helpers.d.ts} +0 -0
  56. package/{index.d.ts → ts/index.d.ts} +0 -0
  57. package/{instanceOf.d.ts → ts/instanceOf.d.ts} +0 -0
  58. package/{json.d.ts → ts/json.d.ts} +0 -0
  59. package/{lazy.d.ts → ts/lazy.d.ts} +0 -0
  60. package/{mapping.d.ts → ts/mapping.d.ts} +0 -0
  61. package/{number.d.ts → ts/number.d.ts} +0 -0
  62. package/{object.d.ts → ts/object.d.ts} +0 -0
  63. package/{optional.d.ts → ts/optional.d.ts} +0 -0
  64. package/{string.d.ts → ts/string.d.ts} +0 -0
  65. package/{tuple.d.ts → ts/tuple.d.ts} +0 -0
  66. package/{types.d.ts → ts/types.d.ts} +1 -1
  67. package/{utils.d.ts → ts/utils.d.ts} +0 -0
  68. package/types.js +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decoders",
3
- "version": "1.25.5",
3
+ "version": "1.26.0-beta2",
4
4
  "description": "Elegant and battle-tested validation library for type-safe input data (for TypeScript and Flow)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -12,7 +12,8 @@
12
12
  "bugs": {
13
13
  "url": "https://github.com/nvie/decoders/issues"
14
14
  },
15
- "main": "./index.js",
15
+ "main": "./cjs/index.js",
16
+ "module": "./es/index.js",
16
17
  "keywords": [
17
18
  "decoder",
18
19
  "decoders",
@@ -39,11 +40,14 @@
39
40
  "map",
40
41
  "predicate"
41
42
  ],
43
+ "peerDependencies": {
44
+ "@babel/runtime": "^7.16.0"
45
+ },
42
46
  "dependencies": {
43
- "debrief": "^1.5.0",
44
- "lemons": "^1.4.0"
47
+ "debrief": "^1.6.0-beta2",
48
+ "lemons": "^1.7.0-beta2"
45
49
  },
46
- "types": "./index.d.ts",
50
+ "types": "./ts/index.d.ts",
47
51
  "githubUrl": "https://github.com/nvie/decoders",
48
52
  "sideEffects": false
49
53
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  import { Annotation } from 'debrief';
2
- import Result from 'lemons/Result';
2
+ import { Result } from 'lemons';
3
3
 
4
4
  export type Scalar = string | number | boolean | symbol | undefined | null;
5
5
 
File without changes
package/types.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- var _Result = _interopRequireDefault(require("lemons/Result"));
4
-
5
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }