Skip to content

Add support for Guid.CreateVersion7#4472

Merged
ncave merged 13 commits into
fable-compiler:mainfrom
OnurGumus:guid-create-version7
Apr 2, 2026
Merged

Add support for Guid.CreateVersion7#4472
ncave merged 13 commits into
fable-compiler:mainfrom
OnurGumus:guid-create-version7

Conversation

@OnurGumus

Copy link
Copy Markdown
Contributor

Summary

  • Add Guid.CreateVersion7() and Guid.CreateVersion7(DateTimeOffset) support (RFC 9562 UUID v7) across all targets
  • Implement runtime libraries for JS/TS, Python, Rust, and Beam
  • Add compiler replacements for JS/TS, Python, Rust, Dart, and Beam

Test plan

  • JS/TS: 2790 tests passing (including new CreateVersion7 tests)
  • Python: 2117 tests passing (including new CreateVersion7 tests)
  • Pyright type checking: no new errors
  • Rust: new tests added, needs CI verification
  • Beam: new tests added, needs CI verification

…ateTimeOffset)

Implement RFC 9562 UUID v7 generation across all targets (JS/TS, Python,
Rust, Dart, Beam) with both parameterless and DateTimeOffset overloads.
Comment thread src/Fable.Transforms/Beam/Replacements.fs Outdated
@ncave

ncave commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator

@OnurGumus see OnurGumus#1

[Rust] Fix guid v7 impl
@OnurGumus

Copy link
Copy Markdown
Contributor Author

@ncave merged that

Comment thread tests/Js/Main/TypeTests.fs
Comment thread src/fable-library-py/fable_library/guid.py Outdated
Comment thread src/fable-library-py/fable_library/guid.py Outdated
@fable-compiler fable-compiler deleted a comment from claude Bot Apr 2, 2026
@fable-compiler fable-compiler deleted a comment from claude Bot Apr 2, 2026
Comment thread src/fable-library-py/fable_library/guid.py Outdated
Co-authored-by: Dag Brattli <dag@brattli.net>

@dbrattli dbrattli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

@ncave

ncave commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

@OnurGumus See OnurGumus#4

[JS/TS] Fix `Guid` to use cryptographically strong random values
@ncave ncave merged commit 5dafe66 into fable-compiler:main Apr 2, 2026
24 checks passed
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.

4 participants