diff --git a/.changeset/iso-basic-format-and-bare-hours.md b/.changeset/iso-basic-format-and-bare-hours.md deleted file mode 100644 index c650796..0000000 --- a/.changeset/iso-basic-format-and-bare-hours.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@taskade/temporal-parser": patch ---- - -Add support for ISO 8601 basic format and bare hours in `parseTimeString()` - -**New formats supported:** - -1. **ISO 8601 basic format** (compact, no colons): - - `"1430"` → 14:30 - - `"143045"` → 14:30:45 - - `"143045.123"` → 14:30:45.123 - -2. **Bare hours** (defaults to :00 minutes): - - `"7"` → 7:00 - - `"7 AM"` → 7:00 AM - - `"23"` → 23:00 - -The parser intelligently detects the format based on digit count and presence of colons, maintaining full backward compatibility with existing formats. diff --git a/CHANGELOG.md b/CHANGELOG.md index e84812e..065c6d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # @taskade/temporal-parser +## 1.2.1 + +### Patch Changes + +- 3f20258: Add support for ISO 8601 basic format and bare hours in `parseTimeString()` + + **New formats supported:** + 1. **ISO 8601 basic format** (compact, no colons): + - `"1430"` → 14:30 + - `"143045"` → 14:30:45 + - `"143045.123"` → 14:30:45.123 + 2. **Bare hours** (defaults to :00 minutes): + - `"7"` → 7:00 + - `"7 AM"` → 7:00 AM + - `"23"` → 23:00 + + The parser intelligently detects the format based on digit count and presence of colons, maintaining full backward compatibility with existing formats. + ## 1.2.0 ### Minor Changes diff --git a/package.json b/package.json index 3c2b93c..18b2d96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@taskade/temporal-parser", - "version": "1.2.0", + "version": "1.2.1", "description": "A lexer/parser based temporal expression parser for ISO 8601 and IXDTF formats", "type": "module", "main": "./dist/cjs/index.cjs",