@wrelik/analytics 2.0.0 → 2.0.1
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/.turbo/turbo-build.log +25 -25
- package/.turbo/turbo-lint.log +17 -0
- package/.turbo/turbo-test.log +15 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +15 -6
- package/package.json +9 -8
- package/src/server/index.test.ts +3 -1
- package/src/server/index.ts +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
> @wrelik/analytics@2.0.
|
|
2
|
+
> @wrelik/analytics@2.0.1 build /Users/lee/Projects/wrelik-kit/packages/analytics
|
|
3
3
|
> tsup src/server/index.ts src/client/index.ts src/shared/index.ts --format cjs,esm --dts --clean
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
5
|
+
CLI Building entry: src/client/index.ts, src/server/index.ts, src/shared/index.ts
|
|
6
|
+
CLI Using tsconfig: tsconfig.json
|
|
7
|
+
CLI tsup v8.5.1
|
|
8
|
+
CLI Target: es2022
|
|
9
|
+
CLI Cleaning output folder
|
|
10
|
+
CJS Build start
|
|
11
|
+
ESM Build start
|
|
12
|
+
ESM dist/shared/index.mjs 93.00 B
|
|
13
|
+
ESM dist/server/index.mjs 1.45 KB
|
|
14
|
+
ESM dist/client/index.mjs 381.00 B
|
|
15
|
+
ESM dist/chunk-HZPXP2CE.mjs 310.00 B
|
|
16
|
+
ESM ⚡️ Build success in 280ms
|
|
17
|
+
CJS dist/client/index.js 1.63 KB
|
|
18
|
+
CJS dist/server/index.js 2.85 KB
|
|
19
|
+
CJS dist/shared/index.js 1.32 KB
|
|
20
|
+
CJS ⚡️ Build success in 281ms
|
|
21
|
+
DTS Build start
|
|
22
|
+
DTS ⚡️ Build success in 1917ms
|
|
23
|
+
DTS dist/client/index.d.ts 545.00 B
|
|
24
|
+
DTS dist/server/index.d.ts 1.20 KB
|
|
25
|
+
DTS dist/shared/index.d.ts 88.00 B
|
|
26
|
+
DTS dist/client/index.d.mts 545.00 B
|
|
27
|
+
DTS dist/server/index.d.mts 1.20 KB
|
|
28
|
+
DTS dist/shared/index.d.mts 88.00 B
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
> @wrelik/analytics@0.2.1 lint /Users/lee/Projects/wrelik-kit/packages/analytics
|
|
3
|
+
> eslint src/
|
|
4
|
+
|
|
5
|
+
Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
|
|
6
|
+
|
|
7
|
+
/Users/lee/Projects/wrelik-kit/packages/analytics/src/client.test.ts
|
|
8
|
+
3:1 warning 'posthog-js' import is restricted from being used. Please use @wrelik/analytics/client instead no-restricted-imports
|
|
9
|
+
|
|
10
|
+
/Users/lee/Projects/wrelik-kit/packages/analytics/src/client.ts
|
|
11
|
+
5:1 warning 'posthog-js' import is restricted from being used. Please use @wrelik/analytics/client instead no-restricted-imports
|
|
12
|
+
|
|
13
|
+
/Users/lee/Projects/wrelik-kit/packages/analytics/src/shared.ts
|
|
14
|
+
18:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
15
|
+
|
|
16
|
+
✖ 3 problems (0 errors, 3 warnings)
|
|
17
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
> @wrelik/analytics@2.0.1 test /Users/lee/Projects/wrelik-kit/packages/analytics
|
|
3
|
+
> vitest run --passWithNoTests
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[1m[46m RUN [49m[22m [36mv4.1.2 [39m[90m/Users/lee/Projects/wrelik-kit/packages/analytics[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m src/shared/index.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
9
|
+
[32m✓[39m src/server/index.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 141[2mms[22m[39m
|
|
10
|
+
|
|
11
|
+
[2m Test Files [22m [1m[32m2 passed[39m[22m[90m (2)[39m
|
|
12
|
+
[2m Tests [22m [1m[32m4 passed[39m[22m[90m (4)[39m
|
|
13
|
+
[2m Start at [22m 20:04:57
|
|
14
|
+
[2m Duration [22m 1.38s[2m (transform 641ms, setup 0ms, import 657ms, tests 148ms, environment 0ms)[22m
|
|
15
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
# @wrelik/analytics
|
|
2
2
|
|
|
3
|
-
## 2.0.
|
|
3
|
+
## 2.0.1
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 3262454: Upgrade runtime SDK and workspace tooling dependencies to latest compatible versions, including Clerk, Sentry, AWS SDK, Inngest, Resend, Upstash, Zod, TypeScript, Turbo, Vitest, TSUP, and ESLint.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Adopt root ESLint flat config and align wrapper peer ranges for updated SDK majors while preserving package export paths. Also apply a patched transitive Next.js resolution to close audit findings and keep production audit clean.
|
|
10
|
+
|
|
11
|
+
Note: Vite is pinned to the latest 7.x line for runtime compatibility in this environment; this avoids current rolldown native-binding failures seen with Vite 8 under Node 20.18.0.
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Breaking change: `@wrelik/auth` and `@wrelik/clerk-next` now require `@clerk/nextjs@7.x` via updated peer ranges (`>=7 <8`). Consumers on Clerk v4-v6 must upgrade to Clerk v7 before adopting these versions.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
- Updated dependencies [3262454]
|
|
16
|
+
- @wrelik/errors@2.0.1
|
|
17
|
+
|
|
18
|
+
## 2.0.0
|
|
19
|
+
|
|
20
|
+
### Major Changes
|
|
21
|
+
|
|
22
|
+
- 818ed58: Refactor runtime packages to strict subpath exports (`/server`, `/client`, `/shared`) with side-effect free entrypoints and hard CI/runtime boundary enforcement.
|
|
14
23
|
|
|
15
24
|
### Patch Changes
|
|
16
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrelik/analytics",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,15 +29,16 @@
|
|
|
29
29
|
"./package.json": "./package.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"posthog-node": "^
|
|
33
|
-
"@wrelik/errors": "2.0.
|
|
32
|
+
"posthog-node": "^5.28.11",
|
|
33
|
+
"@wrelik/errors": "2.0.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/node": "^25.2
|
|
37
|
-
"tsup": "^8.
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"@wrelik/
|
|
36
|
+
"@types/node": "^25.5.2",
|
|
37
|
+
"tsup": "^8.5.1",
|
|
38
|
+
"vite": "^7.3.1",
|
|
39
|
+
"vitest": "^4.1.2",
|
|
40
|
+
"@wrelik/eslint-config": "0.1.2",
|
|
41
|
+
"@wrelik/tsconfig": "0.1.2"
|
|
41
42
|
},
|
|
42
43
|
"wrelik": {
|
|
43
44
|
"runtimes": [
|
package/src/server/index.test.ts
CHANGED
|
@@ -15,7 +15,9 @@ describe('@wrelik/analytics/server', () => {
|
|
|
15
15
|
const identify = vi.fn();
|
|
16
16
|
const capture = vi.fn();
|
|
17
17
|
const shutdown = vi.fn(async () => undefined);
|
|
18
|
-
const PostHog = vi.fn(()
|
|
18
|
+
const PostHog = vi.fn(function PostHogMock() {
|
|
19
|
+
return { identify, capture, shutdown };
|
|
20
|
+
});
|
|
19
21
|
|
|
20
22
|
vi.doMock('posthog-node', () => ({ PostHog }));
|
|
21
23
|
|
package/src/server/index.ts
CHANGED