@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.
@@ -1,28 +1,28 @@
1
1
 
2
- > @wrelik/analytics@2.0.0 build /home/runner/work/wrelik-kit/wrelik-kit/packages/analytics
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
- 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
- CJS dist/client/index.js 1.63 KB
13
- CJS dist/server/index.js 2.85 KB
14
- CJS dist/shared/index.js 1.32 KB
15
- CJS ⚡️ Build success in 63ms
16
- ESM dist/chunk-HZPXP2CE.mjs 310.00 B
17
- ESM dist/server/index.mjs 1.45 KB
18
- ESM dist/shared/index.mjs 93.00 B
19
- ESM dist/client/index.mjs 381.00 B
20
- ESM ⚡️ Build success in 64ms
21
- DTS Build start
22
- DTS ⚡️ Build success in 6124ms
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
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
+  RUN  v4.1.2 /Users/lee/Projects/wrelik-kit/packages/analytics
7
+
8
+ ✓ src/shared/index.test.ts (2 tests) 6ms
9
+ ✓ src/server/index.test.ts (2 tests) 141ms
10
+
11
+  Test Files  2 passed (2)
12
+  Tests  4 passed (4)
13
+  Start at  20:04:57
14
+  Duration  1.38s (transform 641ms, setup 0ms, import 657ms, tests 148ms, environment 0ms)
15
+
@@ -0,0 +1,4 @@
1
+
2
+ > @wrelik/analytics@2.0.0 typecheck /Users/lee/Projects/wrelik-kit/packages/analytics
3
+ > tsc --noEmit
4
+
package/CHANGELOG.md CHANGED
@@ -1,16 +1,25 @@
1
1
  # @wrelik/analytics
2
2
 
3
- ## 2.0.0
3
+ ## 2.0.1
4
4
 
5
- ### Major Changes
5
+ ### Patch Changes
6
6
 
7
- - 818ed58: Refactor runtime packages to strict subpath exports (`/server`, `/client`, `/shared`) with side-effect free entrypoints and hard CI/runtime boundary enforcement.
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
- ### Minor Changes
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
- - Add platform wrapper packages for Clerk (Next/Expo), Next Sentry client instrumentation, and Upstash server SDK access so apps can avoid direct vendor imports while staying inside the `@wrelik/*` boundary.
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
- Add temporary deprecated server-side compatibility singleton exports to analytics, email, jobs, and storage to support DRX migration from root-import convenience APIs to runtime subpaths in one cutover.
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.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": "^3.6.3",
33
- "@wrelik/errors": "2.0.0"
32
+ "posthog-node": "^5.28.11",
33
+ "@wrelik/errors": "2.0.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/node": "^25.2.0",
37
- "tsup": "^8.0.1",
38
- "vitest": "^1.2.2",
39
- "@wrelik/eslint-config": "0.1.1",
40
- "@wrelik/tsconfig": "0.1.1"
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": [
@@ -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(() => ({ identify, capture, shutdown }));
18
+ const PostHog = vi.fn(function PostHogMock() {
19
+ return { identify, capture, shutdown };
20
+ });
19
21
 
20
22
  vi.doMock('posthog-node', () => ({ PostHog }));
21
23
 
@@ -1,4 +1,3 @@
1
- /* eslint-disable no-restricted-imports */
2
1
  import { PostHog } from 'posthog-node';
3
2
  import { validateEventName } from '../shared';
4
3