@timestamp-js/core 0.1.0-rc.1 → 0.1.0-rc.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/README.md CHANGED
@@ -25,6 +25,20 @@ console.log(end ? getDateTime(end) : 'Invalid date')
25
25
  console.log(billingDate ? getDateTime(billingDate) : 'Invalid date')
26
26
  ```
27
27
 
28
+ ## Browser Globals
29
+
30
+ The package also ships a browser-global IIFE build for CDN and CodePen-style usage:
31
+
32
+ ```html
33
+ <script src="https://cdn.jsdelivr.net/npm/@timestamp-js/core@0.1.0-rc.2/dist/index.global.min.js"></script>
34
+ <script>
35
+ const today = TimestampJsCore.today()
36
+ const parsed = TimestampJsCore.parseTimestamp(today)
37
+
38
+ console.log(parsed?.date)
39
+ </script>
40
+ ```
41
+
28
42
  ## Timestamp Values
29
43
 
30
44
  Timestamp objects are immutable. Parsers and update helpers return frozen objects, and functions that change date/time fields return a new Timestamp instead of mutating the original.
@@ -83,7 +97,7 @@ The publishable package lives in `packages/lib` so the repository follows the sa
83
97
 
84
98
  ## Future Scope
85
99
 
86
- The package is intentionally not trying to become a full general-purpose date library on day one. Planned evaluations include Temporal support, explicit timezone behavior, more alternate calendar systems, compact formatting masks, and a script-tag/browser build if CodePen-style demos need it.
100
+ The package is intentionally not trying to become a full general-purpose date library on day one. Planned evaluations include Temporal support, explicit timezone behavior, more alternate calendar systems, and compact formatting masks.
87
101
 
88
102
  ## Development
89
103
 
@@ -91,3 +105,5 @@ The package is intentionally not trying to become a full general-purpose date li
91
105
  pnpm install
92
106
  pnpm verify
93
107
  ```
108
+
109
+ Package builds emit ESM and TypeScript declarations with `tsc`, plus browser-global IIFE bundles with `obuild`.