Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .changeset/iso-basic-format-and-bare-hours.md

This file was deleted.

18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down