@bodil/core 0.5.4 → 0.5.5

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 (49) hide show
  1. package/dist/assert.js +217 -0
  2. package/dist/assert.js.map +1 -0
  3. package/dist/assert.test.js +51 -0
  4. package/dist/assert.test.js.map +1 -0
  5. package/dist/async/abortable-promise.js +203 -0
  6. package/dist/async/abortable-promise.js.map +1 -0
  7. package/dist/async/abortable-promise.test.js +134 -0
  8. package/dist/async/abortable-promise.test.js.map +1 -0
  9. package/dist/async/emitter.js +22 -0
  10. package/dist/async/emitter.js.map +1 -0
  11. package/dist/async/emitter.test.js +49 -0
  12. package/dist/async/emitter.test.js.map +1 -0
  13. package/dist/async.js +52 -0
  14. package/dist/async.js.map +1 -0
  15. package/dist/collections/lfu-cache.js +107 -0
  16. package/dist/collections/lfu-cache.js.map +1 -0
  17. package/dist/collections/lfu-cache.test.js +29 -0
  18. package/dist/collections/lfu-cache.test.js.map +1 -0
  19. package/dist/collections/linked-list.js +129 -0
  20. package/dist/collections/linked-list.js.map +1 -0
  21. package/dist/collections/lru-cache.js +84 -0
  22. package/dist/collections/lru-cache.js.map +1 -0
  23. package/dist/collections/lru-cache.test.js +27 -0
  24. package/dist/collections/lru-cache.test.js.map +1 -0
  25. package/dist/collections.js +8 -0
  26. package/dist/collections.js.map +1 -0
  27. package/dist/decorators.js +28 -0
  28. package/dist/decorators.js.map +1 -0
  29. package/dist/decorators.test.js +71 -0
  30. package/dist/decorators.test.js.map +1 -0
  31. package/dist/disposable.js +251 -0
  32. package/dist/disposable.js.map +1 -0
  33. package/dist/disposable.test.js +54 -0
  34. package/dist/disposable.test.js.map +1 -0
  35. package/dist/fun.js +40 -0
  36. package/dist/fun.js.map +1 -0
  37. package/dist/index.js +15 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/order.js +98 -0
  40. package/dist/order.js.map +1 -0
  41. package/dist/order.test.js +63 -0
  42. package/dist/order.test.js.map +1 -0
  43. package/dist/time.js +130 -0
  44. package/dist/time.js.map +1 -0
  45. package/dist/time.test.js +38 -0
  46. package/dist/time.test.js.map +1 -0
  47. package/dist/types.js +6 -0
  48. package/dist/types.js.map +1 -0
  49. package/package.json +13 -13
package/dist/time.js ADDED
@@ -0,0 +1,130 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */
2
+ /**
3
+ * Utilities for working with {@link Temporal}.
4
+ * @module
5
+ */
6
+ import { present } from "./assert";
7
+ import { Cmp } from "./order";
8
+ /**
9
+ * Test if the given {@link Temporal.Instant} comes before a certain moment
10
+ * in time.
11
+ *
12
+ * If `other` is unspecified, compare with the current time.
13
+ *
14
+ * If `other` is a {@link Temporal.Duration}, compare with that duration
15
+ * subtracted from the current time.
16
+ *
17
+ * If `other` is a {@link Temporal.Instant}, compare with that instant.
18
+ *
19
+ * @example
20
+ * time.isBefore(instant) // is `instant` in the past?
21
+ * time.isBefore(instant, otherInstant) // is `instant` before `otherInstant`?
22
+ * time.isBefore(instant, duration) // is `instant` more than `duration` ago?
23
+ */
24
+ export function isBefore(instant, other) {
25
+ if (other === undefined) {
26
+ return Temporal.Instant.compare(Temporal.Now.instant(), instant) === Cmp.LT;
27
+ }
28
+ return (Temporal.Instant.compare(instant, other instanceof Temporal.Duration ? Temporal.Now.instant().subtract(other) : other) === Cmp.LT);
29
+ }
30
+ /**
31
+ * Test if the given {@link Temporal.Instant} comes after a certain moment in
32
+ * time.
33
+ *
34
+ * If `other` is unspecified, compare with the current time.
35
+ *
36
+ * If `other` is a {@link Temporal.Duration}, compare with that duration added
37
+ * to the current time.
38
+ *
39
+ * If `other` is a {@link Temporal.Instant}, compare with that instant.
40
+ *
41
+ * @example
42
+ * time.isAfter(instant) // is `instant` in the future?
43
+ * time.isAfter(instant, otherInstant) // is `instant` after `otherInstant`?
44
+ * time.isAfter(instant, duration) // is `instant` more than `duration` into the future?
45
+ */
46
+ export function isAfter(instant, other) {
47
+ if (other === undefined) {
48
+ return Temporal.Instant.compare(Temporal.Now.instant(), instant) === Cmp.GT;
49
+ }
50
+ return (Temporal.Instant.compare(instant, other instanceof Temporal.Duration ? Temporal.Now.instant().add(other) : other) === Cmp.GT);
51
+ }
52
+ /**
53
+ * Find the shortest duration or earliest time given a series of
54
+ * {@link Temporal.Duration}s or {@link Temporal.Instant}s.
55
+ */
56
+ export function min(...rest) {
57
+ let first = present(rest.shift(), "time.min() called with no arguments");
58
+ const compare = first instanceof Temporal.Duration
59
+ ? Temporal.Duration.compare
60
+ : Temporal.Instant.compare;
61
+ for (const next of rest) {
62
+ if (compare(next, first) === Cmp.LT) {
63
+ first = next;
64
+ }
65
+ }
66
+ return first;
67
+ }
68
+ /**
69
+ * Find the longest duration or latest time given a series of
70
+ * {@link Temporal.Duration}s or {@link Temporal.Instant}s.
71
+ */
72
+ export function max(...rest) {
73
+ let first = present(rest.shift(), "time.max() called with no arguments");
74
+ const compare = first instanceof Temporal.Duration
75
+ ? Temporal.Duration.compare
76
+ : Temporal.Instant.compare;
77
+ for (const next of rest) {
78
+ if (compare(next, first) === Cmp.GT) {
79
+ first = next;
80
+ }
81
+ }
82
+ return first;
83
+ }
84
+ /**
85
+ * The current time as a {@link Temporal.Instant}.
86
+ *
87
+ * A shorthand for `Temporal.Now.instant()`.
88
+ */
89
+ export function now() {
90
+ return Temporal.Now.instant();
91
+ }
92
+ /**
93
+ * The current time as a {@link Temporal.ZonedDateTime}.
94
+ *
95
+ * A shorthand for `Temporal.Now.zonedDateTimeISO()`.
96
+ */
97
+ export function nowZ() {
98
+ return Temporal.Now.zonedDateTimeISO();
99
+ }
100
+ /**
101
+ * Construct a duration of the given number of days.
102
+ */
103
+ export function days(days) {
104
+ return Temporal.Duration.from({ hours: days * 24 });
105
+ }
106
+ /**
107
+ * Construct a duration of the given number of hours.
108
+ */
109
+ export function hours(hours) {
110
+ return Temporal.Duration.from({ hours });
111
+ }
112
+ /**
113
+ * Construct a duration of the given number of minutes.
114
+ */
115
+ export function minutes(minutes) {
116
+ return Temporal.Duration.from({ minutes });
117
+ }
118
+ /**
119
+ * Construct a duration of the given number of seconds.
120
+ */
121
+ export function seconds(seconds) {
122
+ return Temporal.Duration.from({ seconds });
123
+ }
124
+ /**
125
+ * Construct a duration of the given number of milliseconds.
126
+ */
127
+ export function millis(milliseconds) {
128
+ return Temporal.Duration.from({ milliseconds });
129
+ }
130
+ //# sourceMappingURL=time.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time.js","sourceRoot":"","sources":["../src/time.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,GAAG,EAAgB,MAAM,SAAS,CAAC;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,QAAQ,CACpB,OAAyB,EACzB,KAA4C;IAE5C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;IAChF,CAAC;IACD,OAAO,CACH,QAAQ,CAAC,OAAO,CAAC,OAAO,CACpB,OAAO,EACP,KAAK,YAAY,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CACtF,KAAK,GAAG,CAAC,EAAE,CACf,CAAC;AACN,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,OAAO,CACnB,OAAyB,EACzB,KAA4C;IAE5C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,GAAG,CAA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AAC,EAAE,EAAE,CAAC;YAClC,KAAK,GAAG,IAAI,CAAC;QACjB,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,GAAG;IACf,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;AAClC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,IAAI;IAChB,OAAO,QAAQ,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;AAC3C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,IAAI,CAAC,IAAY;IAC7B,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC,CAAC;AACxD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,KAAK,CAAC,KAAa;IAC/B,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAC7C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,OAAe;IACnC,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;AAC/C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,OAAe;IACnC,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;AAC/C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,MAAM,CAAC,YAAoB;IACvC,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,38 @@
1
+ import "temporal-polyfill/global";
2
+ import { expect, test } from "vitest";
3
+ import { time } from ".";
4
+ test("time.min", () => {
5
+ const a = time.seconds(1);
6
+ const b = time.seconds(5);
7
+ const c = time.seconds(10);
8
+ expect(time.min(a, b, c)).toEqual(a);
9
+ });
10
+ test("time.max", () => {
11
+ const a = time.seconds(1);
12
+ const b = time.seconds(5);
13
+ const c = time.seconds(10);
14
+ expect(time.max(a, b, c)).toEqual(c);
15
+ });
16
+ test("time.isBefore", () => {
17
+ const a = time.now().subtract(time.seconds(10));
18
+ const b = a.subtract(time.seconds(10));
19
+ const c = time.now().add(time.minutes(10));
20
+ expect(time.isBefore(c)).toBeTruthy();
21
+ expect(time.isBefore(a)).toBeFalsy();
22
+ expect(time.isBefore(a, b)).toBeFalsy();
23
+ expect(time.isBefore(b, a)).toBeTruthy();
24
+ expect(time.isBefore(a, time.seconds(5))).toBeTruthy();
25
+ expect(time.isBefore(a, time.seconds(60))).toBeFalsy();
26
+ });
27
+ test("time.isAfter", () => {
28
+ const a = time.now().add(time.seconds(10));
29
+ const b = a.add(time.seconds(10));
30
+ const c = time.now().subtract(time.minutes(10));
31
+ expect(time.isAfter(c)).toBeTruthy();
32
+ expect(time.isAfter(a)).toBeFalsy();
33
+ expect(time.isAfter(a, b)).toBeFalsy();
34
+ expect(time.isAfter(b, a)).toBeTruthy();
35
+ expect(time.isAfter(a, time.seconds(5))).toBeTruthy();
36
+ expect(time.isAfter(a, time.seconds(60))).toBeFalsy();
37
+ });
38
+ //# sourceMappingURL=time.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time.test.js","sourceRoot":"","sources":["../src/time.test.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;IAClB,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC1B,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC1B,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO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OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;AAC1D,CAAC,CAAC,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Utility types.
3
+ * @module
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodil/core",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "My TypeScript standard library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -79,29 +79,29 @@
79
79
  "access": "public"
80
80
  },
81
81
  "dependencies": {
82
- "@bodil/opt": "^0.4.3",
83
- "type-fest": "^5.3.1"
82
+ "@bodil/opt": "^1.0.0",
83
+ "type-fest": "^5.6.0"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@bodil/opt-vitest": "^1.1.0",
87
- "@eslint/eslintrc": "^3.3.3",
88
- "@eslint/js": "^9.39.2",
89
- "@typescript-eslint/eslint-plugin": "^8.52.0",
90
- "@typescript-eslint/parser": "^8.52.0",
87
+ "@eslint/eslintrc": "^3.3.5",
88
+ "@eslint/js": "^9.39.4",
89
+ "@typescript-eslint/eslint-plugin": "^8.60.0",
90
+ "@typescript-eslint/parser": "^8.60.0",
91
91
  "@typhonjs-typedoc/ts-lib-docs": "^2024.12.25",
92
- "eslint": "^9.39.2",
92
+ "eslint": "^9.39.4",
93
93
  "eslint-config-prettier": "^10.1.8",
94
94
  "eslint-plugin-jsdoc": "^58.1.1",
95
95
  "globals": "^16.5.0",
96
96
  "npm-run-all2": "^8.0.4",
97
- "prettier": "^3.7.4",
98
- "temporal-polyfill": "^0.3.0",
99
- "typedoc": "^0.28.15",
97
+ "prettier": "^3.8.3",
98
+ "temporal-polyfill": "^0.3.2",
99
+ "typedoc": "^0.28.19",
100
100
  "typedoc-plugin-extras": "^4.0.1",
101
- "typedoc-plugin-mdn-links": "^5.0.10",
101
+ "typedoc-plugin-mdn-links": "^5.1.1",
102
102
  "typedoc-theme-fresh": "^0.2.3",
103
103
  "typescript": "^5.9.3",
104
- "vite-plugin-doctest": "^1.1.1",
104
+ "vite-plugin-doctest": "^1.2.2",
105
105
  "vitest": "^3.2.4"
106
106
  },
107
107
  "scripts": {