Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes GUID/UUID generation to adhere to RFC 4122 UUID v4 specification #22

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0be5ad4
Update the validation regex to properly test for v4 version/variant f…
bradkovach Sep 28, 2022
5b2b69f
add toObject() method and deprecate toJSON() with warning since toJSO…
bradkovach Sep 28, 2022
b374d4c
Remove repetition in static create method to use static raw
bradkovach Sep 28, 2022
cc32d80
Update TypeError message to reference variable name.
bradkovach Sep 28, 2022
7f61657
Add return type to static gen(count) method
bradkovach Sep 28, 2022
3d8dcc8
Set VERSION VARIANTS and validator fields to read only
bradkovach Sep 28, 2022
877240a
Use singlq quotes wherever possible and format for line width
bradkovach Sep 28, 2022
2b19430
Update the raw() method to modify the version and variant digit to co…
bradkovach Sep 28, 2022
d40f0f0
Remove unnecessary chars in empty guid initializer
bradkovach Sep 28, 2022
44c2122
Clean up white space at EOF
bradkovach Sep 28, 2022
b6d09cc
Add short circuit to pass empty guid in isGuid
bradkovach Sep 29, 2022
eef9d1f
Update empty/null guid init logic
bradkovach Sep 29, 2022
559946a
Clean up test imports and use single quotes wherever possible
bradkovach Sep 29, 2022
89bc5f2
Add tests for empty/null
bradkovach Sep 29, 2022
5371408
Update package.json to use npx instead of hard links to node_modules
bradkovach Sep 29, 2022
95c12e9
Update lockfileVersion to 2
bradkovach Sep 29, 2022
a8f658e
1.0.9
bradkovach Sep 29, 2022
0d72237
Update README.md
bradkovach Sep 29, 2022
08da1a7
1.1.0
bradkovach Sep 29, 2022
38d0ac9
Add test and doc for isGuidLike test
bradkovach Sep 29, 2022
a3f9828
Add tests and nyc/istanbul to achieve 100% coverage
bradkovach Sep 29, 2022
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
Prev Previous commit
Next Next commit
1.1.0
bradkovach committed Sep 29, 2022
commit 08da1a70545b7af88038a08c6a268881dd60d1d1
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "guid-typescript",
"version": "1.0.9",
"version": "1.1.0",
"description": "Guid generator to typescript",
"scripts": {
"verify": "npx tslint .\\lib\\**",