@tuturuuu/utils 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/biome.json +1 -1
- package/package.json +18 -15
- package/src/__tests__/api-proxy-guard.test.ts +980 -62
- package/src/__tests__/app-url.test.ts +22 -0
- package/src/__tests__/upstash-rest.test.ts +3 -0
- package/src/abuse-protection/__tests__/backend-rate-limit.test.ts +10 -45
- package/src/abuse-protection/__tests__/edge-trust.test.ts +258 -0
- package/src/abuse-protection/__tests__/index.test.ts +198 -6
- package/src/abuse-protection/backend-rate-limit.ts +5 -4
- package/src/abuse-protection/constants.ts +4 -0
- package/src/abuse-protection/edge-trust.ts +412 -0
- package/src/abuse-protection/index.ts +158 -138
- package/src/abuse-protection/reputation.ts +10 -0
- package/src/api-proxy-guard.ts +448 -27
- package/src/currencies.test.ts +33 -0
- package/src/currencies.ts +28 -5
- package/src/effect.test.ts +247 -0
- package/src/effect.ts +259 -0
- package/src/internal-domains.ts +78 -2
- package/src/money.test.ts +82 -0
- package/src/money.ts +120 -0
- package/src/next-config.test.ts +13 -0
- package/src/next-config.ts +0 -8
- package/src/platform-release.test.ts +1 -1
- package/src/platform-release.ts +1 -1
- package/src/portless.ts +2 -0
- package/src/task-helper/task-operations.ts +3 -0
- package/src/upstash-rest.ts +3 -1
- package/src/workspace-helper.ts +28 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.0](https://github.com/tutur3u/platform/compare/utils-v0.8.0...utils-v0.9.0) (2026-06-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add tanstack rust migration foundation ([da7e58a](https://github.com/tutur3u/platform/commit/da7e58a2a6c7eefff5df74859e991872b5195132))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **tasks:** refresh kanban special columns ([3317e1d](https://github.com/tutur3u/platform/commit/3317e1d80890afa05a4d10840131b8f2d77910ec))
|
|
14
|
+
* **utils:** prevent shared IP hard bans ([a898502](https://github.com/tutur3u/platform/commit/a898502468dbc9151ad8cb12a3aafae265349ec1))
|
|
15
|
+
* **web:** key verified mutations by session ([caea8ea](https://github.com/tutur3u/platform/commit/caea8ea647ceff9dd63d719312cad4fcc7beee1d))
|
|
16
|
+
|
|
17
|
+
## [0.8.0](https://github.com/tutur3u/platform/compare/utils-v0.7.0...utils-v0.8.0) (2026-06-17)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **inventory:** store commerce money in minor units and harden Polar sync ([3f7ee1d](https://github.com/tutur3u/platform/commit/3f7ee1da9335732854037e7e79fca9d5d2a381d0))
|
|
23
|
+
* **web:** rate limits admin center ([fe61dc9](https://github.com/tutur3u/platform/commit/fe61dc933615466f6169a3db3a4a1840f705e80b))
|
|
24
|
+
* **web:** trust-gated per-session read limits and trusted-location uplift ([3e64c89](https://github.com/tutur3u/platform/commit/3e64c8929dbe7987ad83900620a25a9559fe1edf))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* **api:** share broad anonymous rate buckets ([04c1dc6](https://github.com/tutur3u/platform/commit/04c1dc616bf6a909b37f798c994aba41ff27d13a))
|
|
30
|
+
* **api:** throttle users database post reads ([698639d](https://github.com/tutur3u/platform/commit/698639d572375a67b850d533e584aa05733dc961))
|
|
31
|
+
* **auth:** preserve password failure pressure ([cf1e970](https://github.com/tutur3u/platform/commit/cf1e970a0f8acbf314cbdccd7abc126535dbd846))
|
|
32
|
+
* **auth:** reserve otp send rate limits ([42012b9](https://github.com/tutur3u/platform/commit/42012b90c75f1041637b1d3ea21ff464c942c6d9))
|
|
33
|
+
* **auth:** restrict Portless return ports ([7977bfc](https://github.com/tutur3u/platform/commit/7977bfc074a211a20b3bf133fe78cf94ff8c1d33))
|
|
34
|
+
* **ci:** format storefront files and harden upstash scan wrapper ([4c82444](https://github.com/tutur3u/platform/commit/4c824446725dc280edde3e54f946bf386a52952d))
|
|
35
|
+
* **ci:** unblock turbopack proxy build, type-safe upstash, format ([42393f8](https://github.com/tutur3u/platform/commit/42393f8519f6695df44f71b8654ba86237296ffe))
|
|
36
|
+
* **email:** keep override traffic in proxy guard ([dd6ed5a](https://github.com/tutur3u/platform/commit/dd6ed5a9a21f536e22f7abbbeb3e83f44a81cdff))
|
|
37
|
+
* **next:** remove loopback image defaults ([9ab8fb9](https://github.com/tutur3u/platform/commit/9ab8fb9489a613e72302d5baf35e44f8cea5c82a))
|
|
38
|
+
* **web:** stop new-workspace setup from trapping users on "Preparing Workspace" ([3f7ee1d](https://github.com/tutur3u/platform/commit/3f7ee1da9335732854037e7e79fca9d5d2a381d0))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Performance Improvements
|
|
42
|
+
|
|
43
|
+
* **web:** hydrate user-group detail pages and remove fetch waterfalls ([4845cf7](https://github.com/tutur3u/platform/commit/4845cf71cc7e3e321bd6558ba4e20a406e9cd731))
|
|
44
|
+
|
|
3
45
|
## [0.7.0](https://github.com/tutur3u/platform/compare/utils-v0.6.1...utils-v0.7.0) (2026-06-15)
|
|
4
46
|
|
|
5
47
|
|
package/biome.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuturuuu/utils",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/tutur3u/platform",
|
|
@@ -13,49 +13,51 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"test": "vitest run",
|
|
15
15
|
"test:watch": "vitest",
|
|
16
|
-
"type-check": "
|
|
16
|
+
"type-check": "tsc --project tsconfig.typecheck.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@dnd-kit/core": "^6.3.1",
|
|
20
20
|
"@noble/ciphers": "^2.2.0",
|
|
21
21
|
"@noble/hashes": "^2.2.0",
|
|
22
|
-
"@tanstack/react-query": "^5.101.
|
|
23
|
-
"@tiptap/core": "3.
|
|
24
|
-
"@tiptap/react": "3.
|
|
22
|
+
"@tanstack/react-query": "^5.101.1",
|
|
23
|
+
"@tiptap/core": "3.27.1",
|
|
24
|
+
"@tiptap/react": "3.27.1",
|
|
25
25
|
"@tuturuuu/google": "0.0.2",
|
|
26
26
|
"@tuturuuu/icons": "0.0.6",
|
|
27
|
-
"@tuturuuu/internal-api": "0.
|
|
28
|
-
"@tuturuuu/supabase": "0.
|
|
27
|
+
"@tuturuuu/internal-api": "0.10.0",
|
|
28
|
+
"@tuturuuu/supabase": "0.4.0",
|
|
29
29
|
"@upstash/ratelimit": "^2.0.8",
|
|
30
30
|
"@upstash/redis": "^1.38.0",
|
|
31
31
|
"clsx": "^2.1.1",
|
|
32
32
|
"date-fns": "^4.4.0",
|
|
33
33
|
"dayjs": "^1.11.20",
|
|
34
34
|
"diff": "^9.0.0",
|
|
35
|
+
"effect": "^3.21.4",
|
|
35
36
|
"moment": "^2.30.1",
|
|
36
37
|
"next": "^16.2.9",
|
|
37
|
-
"prosemirror-model": "^1.25.
|
|
38
|
+
"prosemirror-model": "^1.25.9",
|
|
38
39
|
"react": "^19.2.7",
|
|
39
40
|
"react-dom": "^19.2.7",
|
|
40
41
|
"tailwind-merge": "^3.6.0",
|
|
41
|
-
"uuid": "^14.0.
|
|
42
|
+
"uuid": "^14.0.1",
|
|
42
43
|
"y-prosemirror": "^1.3.7",
|
|
43
44
|
"yjs": "^13.6.31",
|
|
44
45
|
"zod": "^4.4.3"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@tuturuuu/types": "0.
|
|
48
|
+
"@tuturuuu/types": "0.11.0",
|
|
48
49
|
"@tuturuuu/typescript-config": "0.1.1",
|
|
49
50
|
"@types/diff": "^8.0.0",
|
|
50
|
-
"@types/node": "^
|
|
51
|
+
"@types/node": "^26.0.0",
|
|
51
52
|
"@types/react": "^19.2.17",
|
|
52
|
-
"@vitejs/plugin-react": "^6.0.
|
|
53
|
-
"typescript": "
|
|
54
|
-
"vite": "^8.0
|
|
55
|
-
"vitest": "^4.1.
|
|
53
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
54
|
+
"typescript": "7.0.1-rc",
|
|
55
|
+
"vite": "^8.1.0",
|
|
56
|
+
"vitest": "^4.1.9"
|
|
56
57
|
},
|
|
57
58
|
"exports": {
|
|
58
59
|
"./timezones": "./src/timezones.json",
|
|
60
|
+
"./effect": "./src/effect.ts",
|
|
59
61
|
"./email/validation": "./src/email/validation.ts",
|
|
60
62
|
"./hooks/*": "./src/hooks/*.ts",
|
|
61
63
|
"./*": "./src/*.ts",
|
|
@@ -66,6 +68,7 @@
|
|
|
66
68
|
"./abuse-protection": "./src/abuse-protection/index.ts",
|
|
67
69
|
"./abuse-protection/backend-rate-limit": "./src/abuse-protection/backend-rate-limit.ts",
|
|
68
70
|
"./abuse-protection/edge": "./src/abuse-protection/edge.ts",
|
|
71
|
+
"./abuse-protection/edge-trust": "./src/abuse-protection/edge-trust.ts",
|
|
69
72
|
"./abuse-protection/user-suspension": "./src/abuse-protection/user-suspension.ts",
|
|
70
73
|
"./currencies": "./src/currencies.ts",
|
|
71
74
|
"./exchange-rates": "./src/exchange-rates.ts",
|