Skip to content

Commit 5fa60fc

Browse files
authored
feat: shared UUID (#18)
1 parent 7133fb7 commit 5fa60fc

25 files changed

Lines changed: 1839 additions & 1567 deletions

.changeset/cute-words-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@webiny/stdlib": patch
3+
---
4+
5+
feat(common): add uuid v4 generator with native randomUUID and getRandomValues fallback

.yarn/releases/yarn-4.14.1.cjs

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

.yarn/releases/yarn-4.16.0.cjs

Lines changed: 944 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
nodeLinker: node-modules
2-
yarnPath: .yarn/releases/yarn-4.14.1.cjs
31
approvedGitRepositories: []
2+
43
enableScripts: false
5-
npmMinimalAgeGate: 48h
4+
5+
nodeLinker: node-modules
6+
7+
npmMinimalAgeGate: 3d
8+
9+
npmPreapprovedPackages:
10+
- "@webiny/di"
11+
12+
yarnPath: .yarn/releases/yarn-4.16.0.cjs

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ The package is ESM-only and ships three subpath exports. Because each is a separ
2727
| `Logger` / `ConsoleLogger` / `ConsoleLoggerFeature` | Logging abstraction + console implementation — [docs](src/common/features/Logger/README.md) |
2828
| `Cache` / `MemoryCacheFeature` | Synchronous key-value cache — [docs](src/common/features/Cache/README.md) |
2929
| `AsyncCache` / `AsyncMemoryCacheFeature` | Async key-value cache — [docs](src/common/features/Cache/README.md) |
30-
| `immutableGet` / `immutableSet` / `immutableDelete` / `mutableSet` / `mutableDelete` | Dot-notation get/set/delete on nested objects — [docs](src/common/utils/README.md#dotprop) |
31-
| `toBoolean` / `isTruthy` / `isFalsy` | Semantic boolean coercion — [docs](src/common/utils/README.md#boolean) |
30+
| `immutableGet` / `immutableSet` / `immutableDelete` / `mutableSet` / `mutableDelete` | Dot-notation get/set/delete on nested objects — [docs](src/common/utils/dotProp/README.md) |
31+
| `toBoolean` / `isTruthy` / `isFalsy` | Semantic boolean coercion — [docs](src/common/utils/boolean/README.md) |
32+
| `uuid` | RFC 4122 v4 UUID generator (native + fallback) — [docs](src/common/utils/uuid/README.md) |
3233

3334
---
3435

__tests__/boolean.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { toBoolean, isTruthy, isFalsy } from "../src/common/utils/boolean.js";
2+
import { toBoolean, isTruthy, isFalsy } from "../src/common/utils/boolean/boolean.js";
33

44
describe("toBoolean", () => {
55
describe("strings — truthy set", () => {

__tests__/dotProp/immutableDelete.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { immutableDelete } from "../../src/common/utils/dotProp.js";
2+
import { immutableDelete } from "../../src/common/utils/dotProp/dotProp.js";
33

44
describe("immutableDelete", () => {
55
it("returns a new object reference", () => {

__tests__/dotProp/immutableGet.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { immutableGet } from "../../src/common/utils/dotProp.js";
2+
import { immutableGet } from "../../src/common/utils/dotProp/dotProp.js";
33

44
describe("immutableGet", () => {
55
it("gets a top-level property", () => {

__tests__/dotProp/immutableSet.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { immutableSet } from "../../src/common/utils/dotProp.js";
2+
import { immutableSet } from "../../src/common/utils/dotProp/dotProp.js";
33

44
describe("immutableSet", () => {
55
it("returns a new object reference", () => {

__tests__/dotProp/mutableDelete.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { mutableDelete } from "../../src/common/utils/dotProp.js";
2+
import { mutableDelete } from "../../src/common/utils/dotProp/dotProp.js";
33

44
describe("mutableDelete", () => {
55
it("removes a top-level property from the original object", () => {

0 commit comments

Comments
 (0)