@wrelik/analytics 2.0.0 → 2.0.2

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.2 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/server/index.ts, src/shared/index.ts, src/client/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/server/index.js 2.85 KB
13
+ CJS dist/shared/index.js 1.32 KB
14
+ CJS dist/client/index.js 1.63 KB
15
+ CJS ⚡️ Build success in 235ms
16
+ ESM dist/server/index.mjs 1.45 KB
17
+ ESM dist/chunk-HZPXP2CE.mjs 310.00 B
18
+ ESM dist/shared/index.mjs 93.00 B
19
+ ESM dist/client/index.mjs 381.00 B
20
+ ESM ⚡️ Build success in 236ms
21
+ DTS Build start
22
+ DTS ⚡️ Build success in 1636ms
23
+ DTS dist/server/index.d.ts 1.20 KB
24
+ DTS dist/shared/index.d.ts 88.00 B
25
+ DTS dist/client/index.d.ts 545.00 B
26
+ DTS dist/server/index.d.mts 1.20 KB
27
+ DTS dist/shared/index.d.mts 88.00 B
28
+ DTS dist/client/index.d.mts 545.00 B
@@ -0,0 +1,4 @@
1
+
2
+ > @wrelik/analytics@2.0.1 lint /Users/lee/Projects/wrelik-kit/packages/analytics
3
+ > eslint src/
4
+
@@ -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.9 /Users/lee/Projects/wrelik-kit/packages/analytics
7
+
8
+ ✓ src/shared/index.test.ts (2 tests) 10ms
9
+ ✓ src/server/index.test.ts (2 tests) 147ms
10
+
11
+  Test Files  2 passed (2)
12
+  Tests  4 passed (4)
13
+  Start at  15:16:07
14
+  Duration  1.21s (transform 333ms, setup 0ms, import 327ms, tests 156ms, environment 0ms)
15
+
@@ -0,0 +1,4 @@
1
+
2
+ > @wrelik/analytics@2.0.1 typecheck /Users/lee/Projects/wrelik-kit/packages/analytics
3
+ > tsc --noEmit
4
+
package/CHANGELOG.md CHANGED
@@ -1,16 +1,45 @@
1
1
  # @wrelik/analytics
2
2
 
3
- ## 2.0.0
3
+ ## 2.0.2
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
+ - 8083eb8: chore(deps): bump runtime dependencies to latest compatible versions
8
8
 
9
- ### Minor Changes
9
+ - `posthog-node` 5.28.11 → 5.39.4 (@wrelik/analytics)
10
+ - `@clerk/backend` 3.2.4 → 3.10.0 (@wrelik/auth)
11
+ - `resend` 6.10.0 → 6.17.1 (@wrelik/email)
12
+ - `@sentry/browser` + `@sentry/node` 10.47.0 → 10.63.0 (@wrelik/errors)
13
+ - `inngest` 4.1.2 → 4.11.0 (@wrelik/jobs)
14
+ - `@aws-sdk/client-s3` + `@aws-sdk/s3-request-presigner` 3.1023.0 → 3.1079.0 (@wrelik/storage)
15
+
16
+ No breaking changes. Workspace tooling also updated: turbo 2.10.3, typescript 6.0.3,
17
+ eslint 10.6.0, prettier 3.9.4, @changesets/cli 2.31.0, dependency-cruiser 18.0.0,
18
+ vitest 4.1.9, @types/node 26.x (all devDependencies, no changeset required).
19
+
20
+ - Updated dependencies [8083eb8]
21
+ - @wrelik/errors@2.0.2
22
+
23
+ ## 2.0.1
24
+
25
+ ### Patch Changes
10
26
 
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.
27
+ - 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.
12
28
 
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.
29
+ 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.
30
+
31
+ 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.
32
+
33
+ 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.
34
+
35
+ - Updated dependencies [3262454]
36
+ - @wrelik/errors@2.0.1
37
+
38
+ ## 2.0.0
39
+
40
+ ### Major Changes
41
+
42
+ - 818ed58: Refactor runtime packages to strict subpath exports (`/server`, `/client`, `/shared`) with side-effect free entrypoints and hard CI/runtime boundary enforcement.
14
43
 
15
44
  ### Patch Changes
16
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrelik/analytics",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
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.39.4",
33
+ "@wrelik/errors": "2.0.2"
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": "^26.1.0",
37
+ "tsup": "^8.5.1",
38
+ "vite": "^7.3.1",
39
+ "vitest": "^4.1.9",
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