Skip to content

Commit 6161ec3

Browse files
chore: version packages (#18)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @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. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 3f20258 commit 6161ec3

3 files changed

Lines changed: 19 additions & 20 deletions

File tree

.changeset/iso-basic-format-and-bare-hours.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# @taskade/temporal-parser
22

3+
## 1.2.1
4+
5+
### Patch Changes
6+
7+
- 3f20258: Add support for ISO 8601 basic format and bare hours in `parseTimeString()`
8+
9+
**New formats supported:**
10+
1. **ISO 8601 basic format** (compact, no colons):
11+
- `"1430"` → 14:30
12+
- `"143045"` → 14:30:45
13+
- `"143045.123"` → 14:30:45.123
14+
2. **Bare hours** (defaults to :00 minutes):
15+
- `"7"` → 7:00
16+
- `"7 AM"` → 7:00 AM
17+
- `"23"` → 23:00
18+
19+
The parser intelligently detects the format based on digit count and presence of colons, maintaining full backward compatibility with existing formats.
20+
321
## 1.2.0
422

523
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@taskade/temporal-parser",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "A lexer/parser based temporal expression parser for ISO 8601 and IXDTF formats",
55
"type": "module",
66
"main": "./dist/cjs/index.cjs",

0 commit comments

Comments
 (0)