-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/modular parse #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f725743
parse v1
magmacomputing 2ddf5b2
tidy
magmacomputing a714a99
realign
magmacomputing 5afc9b7
v2.2.3 1st draft
magmacomputing b0bf0b2
Merge origin/main into feature/modular-parse
Copilot f64d76e
v2.2.3 2nd draft
magmacomputing 3b4b0bd
Merge branch 'feature/modular-parse' of github.com:magmacomputing/mag…
magmacomputing 8688e22
v2.2.3 3rd draft
magmacomputing 243362c
fixed broken clock
magmacomputing ee82c99
bump to v2.2.3
magmacomputing d4bb74d
branch mixup
magmacomputing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2026 Magma Computing | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import { Temporal } from '@js-temporal/polyfill'; | ||
|
|
||
| if (typeof globalThis.Temporal === 'undefined') { | ||
| Object.defineProperty(globalThis, 'Temporal', { | ||
| value: Temporal, | ||
| enumerable: false, | ||
| configurable: true, | ||
| writable: true, | ||
| }); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # 🚀 Releases | ||
|
|
||
| Explore the evolution of Tempo through its version history. | ||
|
|
||
| - [Version 2.x (Current)](./v2.x) - Modular architecture, Shorthand engine, and Ticker stability. | ||
| - [Version 1.x (Legacy)](./v1.x) - Initial public release and Temporal polyfill integration. | ||
| - [Version 0.x (Legacy)](./v0.x) - Initial release. | ||
|
|
||
| --- | ||
|
|
||
| ## Release Strategy | ||
| Tempo follows [Semantic Versioning](https://semver.org/). | ||
| - **Major**: Breaking changes and architectural shifts. | ||
| - **Minor**: New features and significant enhancements. | ||
| - **Patch**: Bug fixes and performance optimizations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # 📜 Version 0.x History | ||
|
|
||
| ## [v0.3.0] - 2025-07-31 | ||
| ### New Features | ||
|
|
||
| Introduced an immutable property decorator and a deep-freeze utility for objects and arrays. | ||
| Added a secure, default configuration module for date/time parsing. | ||
| Extended global browser support for the Temporal API via polyfill. | ||
| ### Bug Fixes | ||
|
|
||
| Corrected the enumerable decorator to ensure proper closure. | ||
| ### Refactor | ||
|
|
||
| Centralised and secured date/time parsing constants and layouts. | ||
| Improved typing and immutability for enums and configuration objects. | ||
| Updated logging and state management to use object-based constants instead of enums. | ||
| ### Documentation | ||
|
|
||
| Enhanced inline documentation and added detailed usage examples for enum utilities. | ||
| ### Chores | ||
|
|
||
| Updated development dependencies to latest versions. | ||
| Reformatted TypeScript configuration for clarity. | ||
|
|
||
| ## [v0.2.0] - 2024-10-30 | ||
| ### New Features | ||
|
|
||
| Updated the version of the Tempo class to 0.2.0, ensuring users have access to the latest enhancements. | ||
| ### Bug Fixes | ||
|
|
||
| Resolved versioning discrepancies in the Default configuration object. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # 📜 Version 1.x History | ||
|
|
||
| ## [v1.1.3] - 2026-03-31 | ||
| ### New Features | ||
|
|
||
| Browser: persistent storage wrapper, multi‑tap gesture helper, geolocation + maps/address utilities, simple alert/prompt/confirm helpers. | ||
| Server: sandboxed temp‑file API, HTTP helpers with timeouts, Base64 encode/decode, JWT payload decoder. | ||
| Tempo v2.0.0: lazy initialization, unified term math/format tokens (#{...}), anchor/term utilities and faster startup. | ||
| ### Documentation | ||
|
|
||
| Expanded API/type docs, architecture, benchmarks, migration and cookbook guidance. | ||
| ### Branding | ||
|
|
||
| Package scope renamed to @magmacomputing/*; new build/release scripts and updated TypeScript/test configs. | ||
|
|
||
| ## [v1.1.2] - 2026-03-23 | ||
| ### New Features | ||
|
|
||
| Unified plugin system via Tempo.load() for plugins, term plugins, and discovery configuration. | ||
| Made Pledge thenable and awaitable via .then() method support. | ||
| Enhanced makeTemplate() with safe placeholder substitution instead of code evaluation. | ||
| ### Bug Fixes | ||
|
|
||
| Improved asCurrency() to properly coerce string inputs. | ||
| Fixed constructor error handling to throw instead of returning empty objects. | ||
| ### Documentation | ||
|
|
||
| Added Target Audience section describing intended users and migration scenarios. | ||
| Expanded Node.js documentation with native subpath import details. | ||
|
|
||
| ## [v1.1.1] - 2026-03-22 | ||
| ### New Features | ||
|
|
||
| Plugin-based extension architecture for extending Tempo functionality | ||
| Automatic plugin discovery via static Tempo.discover() method | ||
| New subpath exports for enums, serialisation, Pledge utility, and ticker plugin | ||
| ### Changed | ||
|
|
||
| Ticker functionality now available as optional plugin; requires explicit installation | ||
| Selective immutability for decorated classes instead of full object freeze | ||
| Core methods (format, add, set) are now protected from overwrites | ||
| ### Documentation | ||
|
|
||
| Comprehensive overhaul reflecting new plugin architecture | ||
| Dedicated Pledge utility documentation added | ||
|
|
||
| ## [v1.1.0] - 2026-03-19 | ||
| ### New Features | ||
|
|
||
| Introduced Tempo.ticker() — reactive clock streams via async-generator (for await...of) or callback subscription with stop control. | ||
| ### Documentation | ||
|
|
||
| Added a dedicated ticker guide and updated Tempo docs with examples and API reference. | ||
| ### Tests | ||
|
|
||
| Added unit tests covering callback mode, async-iterator mode and input validation. | ||
| ### Chores | ||
|
|
||
| Bumped package version to 1.1.0. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.