@fluidframework/core-utils 2.0.0-internal.7.2.2 → 2.0.0-internal.7.4.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 (77) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +7 -3
  3. package/api-extractor-lint.json +13 -0
  4. package/api-extractor.json +9 -1
  5. package/api-report/core-utils.api.md +19 -19
  6. package/dist/assert.d.ts +1 -1
  7. package/dist/assert.js +1 -1
  8. package/dist/assert.js.map +1 -1
  9. package/dist/core-utils-alpha.d.ts +154 -0
  10. package/dist/core-utils-beta.d.ts +41 -0
  11. package/dist/core-utils-public.d.ts +41 -0
  12. package/dist/core-utils-untrimmed.d.ts +414 -0
  13. package/dist/delay.d.ts +1 -1
  14. package/dist/delay.js +1 -1
  15. package/dist/delay.js.map +1 -1
  16. package/dist/heap.d.ts +4 -4
  17. package/dist/heap.js +2 -2
  18. package/dist/heap.js.map +1 -1
  19. package/dist/lazy.d.ts +2 -2
  20. package/dist/lazy.js +2 -2
  21. package/dist/lazy.js.map +1 -1
  22. package/dist/promiseCache.d.ts +3 -3
  23. package/dist/promiseCache.js +1 -1
  24. package/dist/promiseCache.js.map +1 -1
  25. package/dist/promises.d.ts +1 -1
  26. package/dist/promises.js +1 -1
  27. package/dist/promises.js.map +1 -1
  28. package/dist/timer.d.ts +6 -6
  29. package/dist/timer.js +3 -3
  30. package/dist/timer.js.map +1 -1
  31. package/dist/tsdoc-metadata.json +1 -1
  32. package/dist/unreachable.d.ts +1 -1
  33. package/dist/unreachable.js +1 -1
  34. package/dist/unreachable.js.map +1 -1
  35. package/lib/assert.d.ts +1 -1
  36. package/lib/assert.js +6 -2
  37. package/lib/assert.js.map +1 -1
  38. package/lib/compare.js +5 -1
  39. package/lib/compare.js.map +1 -1
  40. package/lib/core-utils-alpha.d.ts +154 -0
  41. package/lib/core-utils-beta.d.ts +41 -0
  42. package/lib/core-utils-public.d.ts +41 -0
  43. package/lib/core-utils-untrimmed.d.ts +414 -0
  44. package/lib/delay.d.ts +1 -1
  45. package/lib/delay.js +6 -2
  46. package/lib/delay.js.map +1 -1
  47. package/lib/heap.d.ts +4 -4
  48. package/lib/heap.js +8 -4
  49. package/lib/heap.js.map +1 -1
  50. package/lib/index.js +25 -9
  51. package/lib/index.js.map +1 -1
  52. package/lib/lazy.d.ts +2 -2
  53. package/lib/lazy.js +9 -4
  54. package/lib/lazy.js.map +1 -1
  55. package/lib/promiseCache.d.ts +3 -3
  56. package/lib/promiseCache.js +6 -2
  57. package/lib/promiseCache.js.map +1 -1
  58. package/lib/promises.d.ts +1 -1
  59. package/lib/promises.js +6 -2
  60. package/lib/promises.js.map +1 -1
  61. package/lib/timer.d.ts +6 -6
  62. package/lib/timer.js +17 -11
  63. package/lib/timer.js.map +1 -1
  64. package/lib/unreachable.d.ts +1 -1
  65. package/lib/unreachable.js +6 -2
  66. package/lib/unreachable.js.map +1 -1
  67. package/package.json +33 -14
  68. package/src/assert.ts +1 -1
  69. package/src/delay.ts +1 -1
  70. package/src/heap.ts +4 -4
  71. package/src/lazy.ts +2 -2
  72. package/src/promiseCache.ts +3 -3
  73. package/src/promises.ts +1 -1
  74. package/src/timer.ts +6 -6
  75. package/src/unreachable.ts +1 -1
  76. package/tsconfig.esnext.json +1 -2
  77. package/tsconfig.json +6 -4
package/src/timer.ts CHANGED
@@ -7,7 +7,7 @@ import { assert } from "./assert";
7
7
  import { Deferred } from "./promises";
8
8
 
9
9
  /**
10
- * @public
10
+ * @internal
11
11
  */
12
12
  export interface ITimer {
13
13
  /**
@@ -71,7 +71,7 @@ const maxSetTimeoutMs = 0x7fffffff; // setTimeout limit is MAX_INT32=(2^31-1).
71
71
  * @param setTimeoutIdFn - Executed to update the timeout if multiple timeouts are required when
72
72
  * timeoutMs greater than maxTimeout
73
73
  * @returns The initial timeout
74
- * @public
74
+ * @internal
75
75
  */
76
76
  export function setLongTimeout(
77
77
  timeoutFn: () => void,
@@ -99,7 +99,7 @@ export function setLongTimeout(
99
99
  * makes it simpler to keep track of recurring timeouts with the same
100
100
  * or similar handlers and timeouts. This class supports long timeouts
101
101
  * or timeouts exceeding (2^31)-1 ms or approximately 24.8 days.
102
- * @public
102
+ * @internal
103
103
  */
104
104
  export class Timer implements ITimer {
105
105
  /**
@@ -221,7 +221,7 @@ export class Timer implements ITimer {
221
221
  }
222
222
 
223
223
  /**
224
- * @public
224
+ * @internal
225
225
  */
226
226
  export interface IPromiseTimerResult {
227
227
  timerResult: "timeout" | "cancel";
@@ -230,7 +230,7 @@ export interface IPromiseTimerResult {
230
230
  /**
231
231
  * Timer which offers a promise that fulfills when the timer
232
232
  * completes.
233
- * @public
233
+ * @internal
234
234
  */
235
235
  export interface IPromiseTimer extends ITimer {
236
236
  /**
@@ -245,7 +245,7 @@ export interface IPromiseTimer extends ITimer {
245
245
  * makes it simpler to keep track of recurring timeouts with the
246
246
  * same handlers and timeouts, while also providing a promise that
247
247
  * resolves when it times out.
248
- * @public
248
+ * @internal
249
249
  */
250
250
  export class PromiseTimer implements IPromiseTimer {
251
251
  private deferred?: Deferred<IPromiseTimerResult>;
@@ -17,7 +17,7 @@
17
17
  * default: unreachableCase(bool);
18
18
  * }
19
19
  * ```
20
- * @public
20
+ * @internal
21
21
  */
22
22
  export function unreachableCase(_: never, message = "Unreachable Case"): never {
23
23
  throw new Error(message);
@@ -1,7 +1,6 @@
1
1
  {
2
- "extends": "./tsconfig.json",
2
+ "extends": ["./tsconfig.json", "../../../common/build/build-common/tsconfig.esm.json"],
3
3
  "compilerOptions": {
4
4
  "outDir": "./lib",
5
- "module": "esnext",
6
5
  },
7
6
  }
package/tsconfig.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
- "extends": "@fluidframework/build-common/ts-common-config.json",
2
+ "extends": [
3
+ "../../../common/build/build-common/tsconfig.base.json",
4
+ "../../../common/build/build-common/tsconfig.cjs.json",
5
+ ],
6
+ "include": ["src/**/*"],
7
+ "exclude": ["src/test/**/*"],
3
8
  "compilerOptions": {
4
9
  "rootDir": "./src",
5
10
  "outDir": "./dist",
6
- "composite": true,
7
11
  },
8
- "include": ["src/**/*"],
9
- "exclude": ["src/test/**/*"],
10
12
  }