@buenos-nachos/time-sync 0.5.0 → 0.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buenos-nachos/time-sync",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "author": "Michael Smith <hello@nachos.dev> (https://www.nachos.dev)",
@@ -15,6 +15,9 @@
15
15
  "utility",
16
16
  "ui"
17
17
  ],
18
+ "files": [
19
+ "./src"
20
+ ],
18
21
  "sideEffects": false,
19
22
  "main": "./dist/index.js",
20
23
  "publishConfig": {
package/src/TimeSync.ts CHANGED
@@ -113,7 +113,9 @@ export interface SubscriptionInitOptions {
113
113
  */
114
114
  export interface Snapshot {
115
115
  /**
116
- * The date that was last dispatched to all subscribers.
116
+ * The date that TimeSync last processed. This will always match the date that
117
+ * was last dispatched to all subscribers, but if no updates have been issued,
118
+ * this value will match the date used to instantiate the TimeSync.
117
119
  */
118
120
  readonly date: ReadonlyDate;
119
121
 
package/CHANGELOG.md DELETED
@@ -1,67 +0,0 @@
1
- # @buenos-nachos/time-sync
2
-
3
- ## 0.5.0
4
-
5
- ### Breaking Changes
6
-
7
- - c3986e9: revamped all state management and APIs to be based on monotonic time
8
- - c3986e9: Removed `registeredAt` and `intervalLastFulfilledAt` properties from `SubscriptionContext` and added monotonic `registeredAtMs`
9
- - c3986e9: Added monotonic `lastUpdatedAt` property to `Snapshot` type.
10
-
11
- ## 0.4.1
12
-
13
- ### Patch Changes
14
-
15
- - 5f37f1a: refactored class to remove private setSnapshost method
16
-
17
- ## 0.4.0
18
-
19
- ### Breaking Changes
20
-
21
- - 663479e: Removed `isSubscribed` property from context and made all other context properties readonly.
22
-
23
- ## 0.3.2
24
-
25
- ### Patch Changes
26
-
27
- - b8fbaf8: cleanup up comments and types for exported class, methods, and types.
28
-
29
- ## 0.3.1
30
-
31
- ### Patch Changes
32
-
33
- - 5fce018: switched internal implementations to use Date.now more often to reduce memory usage
34
-
35
- ## 0.3.0
36
-
37
- ### Breaking Changes
38
-
39
- - 122f6c1: Updated `SubscriptionContext.timeSync` type to be readonly and non-nullable, and renamed `SubscriptionContext.isLive` to `SubscriptionContext.isSubscribed`.
40
-
41
- ## 0.2.0
42
-
43
- ### Breaking Changes
44
-
45
- - 2f527dd: Changed the default value of `allowDuplicateFunctionCalls` from `false` to `true`
46
-
47
- ### Minor Changes
48
-
49
- - 5f86fac: Added second parameter to `onUpdate` callback. This value is a value of type `SubscriptionContext` and provides information about the current subscription.
50
-
51
- ## 0.1.2
52
-
53
- ### Patch Changes
54
-
55
- - 6189eb2: add README to root directory
56
-
57
- ## 0.1.1
58
-
59
- ### Patch Changes
60
-
61
- - f18d71c: fix: specified module type as ESM
62
-
63
- ## 0.1.0
64
-
65
- ### Minor Changes
66
-
67
- - 8be4b26: Initial release
package/tsconfig.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json"
3
- }
package/tsdown.config.ts DELETED
@@ -1,9 +0,0 @@
1
- import { defineConfig } from "tsdown";
2
-
3
- export default defineConfig({
4
- entry: "./src/index.ts",
5
- platform: "neutral",
6
- dts: true,
7
- sourcemap: true,
8
- format: ["cjs", "esm"],
9
- });