@relyio/sdk 0.6.0 → 0.7.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +370 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/{chunk-DY2XT7OF.cjs → chunk-72UK5U7T.cjs} +70 -60
  4. package/dist/{chunk-7ABNXVWL.js → chunk-GYHAVYND.js} +777 -399
  5. package/dist/{chunk-I3ESNANB.js → chunk-H6IBQSMM.js} +2 -2
  6. package/dist/{chunk-HT6NFRM2.cjs → chunk-TZL374LS.cjs} +2 -2
  7. package/dist/{chunk-GCMQUM6N.cjs → chunk-VH2DE7HZ.cjs} +776 -402
  8. package/dist/{chunk-XJVY2CLY.js → chunk-YEJUMW4X.js} +70 -60
  9. package/dist/client/index.cjs +4 -3
  10. package/dist/client/index.d.cts +4 -4
  11. package/dist/client/index.d.ts +4 -4
  12. package/dist/client/index.js +2 -1
  13. package/dist/{index-d1Kz1e19.d.cts → define-content-type-DiVpbwNs.d.cts} +1615 -684
  14. package/dist/{index-yPbhZc6q.d.ts → define-content-type-DiVpbwNs.d.ts} +1615 -684
  15. package/dist/{define-schema-1kr2HIzN.d.cts → define-schema-C-5an28C.d.ts} +189 -85
  16. package/dist/{define-schema-ChvAzY8H.d.ts → define-schema-D7MButVt.d.cts} +189 -85
  17. package/dist/{index-XqoGUaAY.d.ts → index-1G97sNA8.d.ts} +489 -267
  18. package/dist/index-BOQIHnsh.d.ts +818 -0
  19. package/dist/index-DbsTUw3Q.d.cts +818 -0
  20. package/dist/{index-Df1VsfJR.d.cts → index-M0X45k7J.d.cts} +489 -267
  21. package/dist/index.cjs +98 -114
  22. package/dist/index.d.cts +31 -31
  23. package/dist/index.d.ts +31 -31
  24. package/dist/index.js +8 -8
  25. package/dist/schema/index.cjs +35 -35
  26. package/dist/schema/index.d.cts +13 -11
  27. package/dist/schema/index.d.ts +13 -11
  28. package/dist/schema/index.js +1 -1
  29. package/dist/types/index.d.cts +2 -2
  30. package/dist/types/index.d.ts +2 -2
  31. package/dist/utils/index.cjs +19 -19
  32. package/dist/utils/index.d.cts +10 -1
  33. package/dist/utils/index.d.ts +10 -1
  34. package/dist/utils/index.js +1 -1
  35. package/package.json +4 -3
  36. package/dist/define-content-type-CDB3kyeA.d.cts +0 -1173
  37. package/dist/define-content-type-CDB3kyeA.d.ts +0 -1173
@@ -1,81 +1,81 @@
1
1
  'use strict';
2
2
 
3
- var chunkHT6NFRM2_cjs = require('../chunk-HT6NFRM2.cjs');
3
+ var chunkTZL374LS_cjs = require('../chunk-TZL374LS.cjs');
4
4
  require('../chunk-MWMSFIWN.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "camelToSnake", {
9
9
  enumerable: true,
10
- get: function () { return chunkHT6NFRM2_cjs.camelToSnake; }
10
+ get: function () { return chunkTZL374LS_cjs.camelToSnake; }
11
11
  });
12
12
  Object.defineProperty(exports, "createDeferred", {
13
13
  enumerable: true,
14
- get: function () { return chunkHT6NFRM2_cjs.createDeferred; }
14
+ get: function () { return chunkTZL374LS_cjs.createDeferred; }
15
15
  });
16
16
  Object.defineProperty(exports, "debounce", {
17
17
  enumerable: true,
18
- get: function () { return chunkHT6NFRM2_cjs.debounce; }
18
+ get: function () { return chunkTZL374LS_cjs.debounce; }
19
19
  });
20
20
  Object.defineProperty(exports, "deepClone", {
21
21
  enumerable: true,
22
- get: function () { return chunkHT6NFRM2_cjs.deepClone; }
22
+ get: function () { return chunkTZL374LS_cjs.deepClone; }
23
23
  });
24
24
  Object.defineProperty(exports, "generateId", {
25
25
  enumerable: true,
26
- get: function () { return chunkHT6NFRM2_cjs.generateId; }
26
+ get: function () { return chunkTZL374LS_cjs.generateId; }
27
27
  });
28
28
  Object.defineProperty(exports, "isBrowser", {
29
29
  enumerable: true,
30
- get: function () { return chunkHT6NFRM2_cjs.isBrowser; }
30
+ get: function () { return chunkTZL374LS_cjs.isBrowser; }
31
31
  });
32
32
  Object.defineProperty(exports, "isNode", {
33
33
  enumerable: true,
34
- get: function () { return chunkHT6NFRM2_cjs.isNode; }
34
+ get: function () { return chunkTZL374LS_cjs.isNode; }
35
35
  });
36
36
  Object.defineProperty(exports, "isPlainObject", {
37
37
  enumerable: true,
38
- get: function () { return chunkHT6NFRM2_cjs.isPlainObject; }
38
+ get: function () { return chunkTZL374LS_cjs.isPlainObject; }
39
39
  });
40
40
  Object.defineProperty(exports, "isValidEmail", {
41
41
  enumerable: true,
42
- get: function () { return chunkHT6NFRM2_cjs.isValidEmail; }
42
+ get: function () { return chunkTZL374LS_cjs.isValidEmail; }
43
43
  });
44
44
  Object.defineProperty(exports, "isValidUrl", {
45
45
  enumerable: true,
46
- get: function () { return chunkHT6NFRM2_cjs.isValidUrl; }
46
+ get: function () { return chunkTZL374LS_cjs.isValidUrl; }
47
47
  });
48
48
  Object.defineProperty(exports, "mergeDeep", {
49
49
  enumerable: true,
50
- get: function () { return chunkHT6NFRM2_cjs.mergeDeep; }
50
+ get: function () { return chunkTZL374LS_cjs.mergeDeep; }
51
51
  });
52
52
  Object.defineProperty(exports, "omit", {
53
53
  enumerable: true,
54
- get: function () { return chunkHT6NFRM2_cjs.omit; }
54
+ get: function () { return chunkTZL374LS_cjs.omit; }
55
55
  });
56
56
  Object.defineProperty(exports, "pick", {
57
57
  enumerable: true,
58
- get: function () { return chunkHT6NFRM2_cjs.pick; }
58
+ get: function () { return chunkTZL374LS_cjs.pick; }
59
59
  });
60
60
  Object.defineProperty(exports, "retry", {
61
61
  enumerable: true,
62
- get: function () { return chunkHT6NFRM2_cjs.retry; }
62
+ get: function () { return chunkTZL374LS_cjs.retry; }
63
63
  });
64
64
  Object.defineProperty(exports, "sleep", {
65
65
  enumerable: true,
66
- get: function () { return chunkHT6NFRM2_cjs.sleep; }
66
+ get: function () { return chunkTZL374LS_cjs.sleep; }
67
67
  });
68
68
  Object.defineProperty(exports, "snakeToCamel", {
69
69
  enumerable: true,
70
- get: function () { return chunkHT6NFRM2_cjs.snakeToCamel; }
70
+ get: function () { return chunkTZL374LS_cjs.snakeToCamel; }
71
71
  });
72
72
  Object.defineProperty(exports, "throttle", {
73
73
  enumerable: true,
74
- get: function () { return chunkHT6NFRM2_cjs.throttle; }
74
+ get: function () { return chunkTZL374LS_cjs.throttle; }
75
75
  });
76
76
  Object.defineProperty(exports, "toSafeString", {
77
77
  enumerable: true,
78
- get: function () { return chunkHT6NFRM2_cjs.toSafeString; }
78
+ get: function () { return chunkTZL374LS_cjs.toSafeString; }
79
79
  });
80
80
  //# sourceMappingURL=index.cjs.map
81
81
  //# sourceMappingURL=index.cjs.map
@@ -2,7 +2,16 @@
2
2
  * Utility functions for the RelyIO SDK
3
3
  */
4
4
  /**
5
- * Check if code is running in a browser environment
5
+ * Whether code is running in a browser page: a global `window` that has a `document`.
6
+ *
7
+ * The one definition. The HTTP client asks it for its `User-Agent`, `credentials` mode, CORS hook
8
+ * and forbidden-header filter, `@relyio/react`'s `live` for its refusal and the preview toolbar for
9
+ * its mount check, so none of them can disagree. A `window` alone is not enough: Deno 1.x's global
10
+ * object is a `window` with no `document`, and it is a server runtime. A Web Worker has neither and
11
+ * is not a page either.
12
+ *
13
+ * This is the one file under `packages/customer` where `typeof window` is written; the
14
+ * `browser-check` lint fence refuses it anywhere else in a customer package (REL-1409).
6
15
  */
7
16
  declare function isBrowser(): boolean;
8
17
  /**
@@ -2,7 +2,16 @@
2
2
  * Utility functions for the RelyIO SDK
3
3
  */
4
4
  /**
5
- * Check if code is running in a browser environment
5
+ * Whether code is running in a browser page: a global `window` that has a `document`.
6
+ *
7
+ * The one definition. The HTTP client asks it for its `User-Agent`, `credentials` mode, CORS hook
8
+ * and forbidden-header filter, `@relyio/react`'s `live` for its refusal and the preview toolbar for
9
+ * its mount check, so none of them can disagree. A `window` alone is not enough: Deno 1.x's global
10
+ * object is a `window` with no `document`, and it is a server runtime. A Web Worker has neither and
11
+ * is not a page either.
12
+ *
13
+ * This is the one file under `packages/customer` where `typeof window` is written; the
14
+ * `browser-check` lint fence refuses it anywhere else in a customer package (REL-1409).
6
15
  */
7
16
  declare function isBrowser(): boolean;
8
17
  /**
@@ -1,4 +1,4 @@
1
- export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from '../chunk-I3ESNANB.js';
1
+ export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from '../chunk-H6IBQSMM.js';
2
2
  import '../chunk-XQ4QHWZE.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relyio/sdk",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "RelyIO is coming soon — this package is not ready for general use yet.",
5
5
  "keywords": [
6
6
  "relyio"
@@ -85,8 +85,8 @@
85
85
  "typedoc": "^0.28.20",
86
86
  "typescript": "npm:@typescript/typescript6@6.0.2",
87
87
  "vitest": "4.1.11",
88
- "@relyio/api-contract": "0.1.0",
89
- "@relyio/eslint-config": "0.0.0"
88
+ "@relyio/eslint-config": "0.0.0",
89
+ "@relyio/api-contract": "0.1.0"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "typescript": ">=4.9.0"
@@ -133,6 +133,7 @@
133
133
  "test:coverage": "vitest --coverage",
134
134
  "test:ui": "vitest --ui",
135
135
  "type:check": "tsc --noEmit && tsc --noEmit -p tsconfig.register-types.json",
136
+ "test:types": "tsc --noEmit -p tsconfig.test.json",
136
137
  "codegen:openapi": "node ../../../scripts/emit-openapi-types.mjs ../../../apps/services/api/openapi-spec.json src/http/api-schema.ts",
137
138
  "lint:write": "relyio-lint --fix",
138
139
  "lint:check": "relyio-lint",