Skip to content

3.6.1 hotfix#55

Merged
magmacomputing merged 1 commit into
mainfrom
release/duration-hotfix
Jul 6, 2026
Merged

3.6.1 hotfix#55
magmacomputing merged 1 commit into
mainfrom
release/duration-hotfix

Conversation

@magmacomputing

@magmacomputing magmacomputing commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Bug Fixes
    • Fixed an issue where shorthand duration inputs could fail validation, preventing a TypeError and improving compatibility with duration-style values.
  • Chores
    • Bumped the package version to 3.6.1 across the library and tempo packages.
  • Documentation
    • Added a changelog entry for version 3.6.1.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1650b99b-43de-41f9-bee8-cd3a6d8240c7

📥 Commits

Reviewing files that changed from the base of the PR and between 9a2fa96 and 713e4fc.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (6)
  • package.json
  • packages/library/package.json
  • packages/tempo/CHANGELOG.md
  • packages/tempo/package.json
  • packages/tempo/src/tempo.class.ts
  • packages/tempo/src/tempo.version.ts

📝 Walkthrough

Walkthrough

Fixes a regression in the Tempo constructor's #swap() method by remapping singular duration-like keys (matching enums.ELEMENT) to pluralized equivalents before options detection, preventing a TypeError. Version bumped to 3.6.1 across packages with a corresponding changelog entry.

Changes

Tempo 3.6.1 Fix and Release

Layer / File(s) Summary
Duration-like key remapping fix
packages/tempo/src/tempo.class.ts
Tempo.#swap() now copies duration-like objects, remaps enums.ELEMENT keys to plural forms, deletes original keys, then applies existing options-unwrapping logic to the mapped object.
Version bump and changelog
package.json, packages/library/package.json, packages/tempo/package.json, packages/tempo/src/tempo.version.ts, packages/tempo/CHANGELOG.md
Package versions updated from 3.6.0 to 3.6.1 across all workspaces, TEMPO_VERSION constant updated, and a changelog entry documents the duration-like fix.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Caller
  participant TempoSwap as Tempo#swap
  participant IsDurationLike
  participant IsOptions

  Caller->>TempoSwap: swap(tempo)
  TempoSwap->>IsDurationLike: isDurationLike(tempo)
  IsDurationLike-->>TempoSwap: true
  TempoSwap->>TempoSwap: remap ELEMENT keys to plural, delete originals
  TempoSwap->>IsOptions: isOptions(mappedTempo)
  IsOptions-->>TempoSwap: result
  TempoSwap-->>Caller: [value, options]
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is too generic and doesn’t describe the actual fix or version bump in the changeset. Use a specific title like "Fix duration-like shorthand handling in Tempo 3.6.1".
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release/duration-hotfix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@magmacomputing magmacomputing merged commit 425863b into main Jul 6, 2026
2 checks passed
@magmacomputing magmacomputing deleted the release/duration-hotfix branch July 6, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant