Skip to content

v0.4.0 - #19

Merged
Ret2Hell merged 2 commits into
mainfrom
rename
Apr 25, 2026
Merged

Ret2Hell merged 2 commits into
mainfrom
rename

Conversation

@Ret2Hell

@Ret2Hell Ret2Hell commented Apr 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Refactor

    • Rebranded SDK from @analytics-sdk/* to tanilytics and @tanilytics/* package names
    • Renamed core API exports: tracker class, configuration type, and version constant
    • Updated all error and log message prefixes to reflect new branding
  • Documentation

    • Updated all README files with new package names, installation instructions, and usage examples

@coderabbitai

coderabbitai Bot commented Apr 25, 2026 •

Copy link
Copy Markdown
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: 2535ad4c-0988-4a48-bd94-4fa61b4cddf6

📥 Commits

Reviewing files that changed from the base of the PR and between e4fe783 and 919eebf.

⛔ Files ignored due to path filters (2)
  • bun.lock is excluded by !**/*.lock
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (38)
  • .github/workflows/release.yml
  • AGENTS.md
  • README.md
  • packages/core/README.md
  • packages/core/package.json
  • packages/core/rollup.config.cjs
  • packages/core/src/config/defaults.ts
  • packages/core/src/config/index.ts
  • packages/core/src/config/merger.ts
  • packages/core/src/config/types.ts
  • packages/core/src/config/validator.test.ts
  • packages/core/src/config/validator.ts
  • packages/core/src/events/event-builder.ts
  • packages/core/src/events/event-types.ts
  • packages/core/src/events/event-validator.ts
  • packages/core/src/index.test.ts
  • packages/core/src/index.ts
  • packages/core/src/privacy/storage.ts
  • packages/core/src/random.ts
  • packages/core/src/tracker.test.ts
  • packages/core/src/tracker.ts
  • packages/core/src/transport/sender.ts
  • packages/core/src/version.ts
  • packages/core/vite.config.ts
  • packages/core/vitest.config.mts
  • packages/media-adapters/hlsjs/package.json
  • packages/media-adapters/hlsjs/vitest.config.mts
  • packages/media-adapters/videojs/package.json
  • packages/media-adapters/videojs/vitest.config.mts
  • packages/media-adapters/youtube/README.md
  • packages/media-adapters/youtube/package.json
  • packages/media-adapters/youtube/src/lib/config.ts
  • packages/media-adapters/youtube/src/lib/discovery.ts
  • packages/media-adapters/youtube/src/lib/events.ts
  • packages/media-adapters/youtube/src/lib/types.ts
  • packages/media-adapters/youtube/src/lib/youtube.spec.ts
  • packages/media-adapters/youtube/src/lib/youtube.ts
  • packages/media-adapters/youtube/vitest.config.mts

📝 Walkthrough

Walkthrough

This pull request performs a comprehensive rebranding of the analytics SDK from @analytics-sdk/* packages to tanilytics (core) and @tanilytics/* (adapters). Changes systematically update public API names (SDK_VERSION→VERSION, AnalyticsConfig→TanilyticsConfig, AnalyticsTracker→TanilyticsTracker), error message prefixes, documentation, build configuration, and all package identifiers across core and media adapters.

Changes

Cohort / File(s) Summary
Core Package Metadata
packages/core/package.json, packages/core/rollup.config.cjs, packages/core/vite.config.ts, packages/core/vitest.config.mts
Updated package name from @analytics-sdk/core to tanilytics, changed Rollup IIFE global name to Tanilytics, and updated test suite identifier in Vitest configurations.
Core Public API Surface
packages/core/src/index.ts, packages/core/src/version.ts, packages/core/src/tracker.ts
Renamed exported class AnalyticsTracker to TanilyticsTracker, changed version constant SDK_VERSION to VERSION, updated init() function signature to accept TanilyticsConfig, and swapped default export identifier from analytics to tanilytics.
Core Configuration Types & Validation
packages/core/src/config/types.ts, packages/core/src/config/index.ts, packages/core/src/config/merger.ts, packages/core/src/config/validator.ts, packages/core/src/config/validator.test.ts
Renamed exported type AnalyticsConfig to TanilyticsConfig throughout config modules, updated function signatures and validation error messages with [Tanilytics] prefix.
Core Error & Debug Messages
packages/core/src/config/defaults.ts, packages/core/src/events/event-builder.ts, packages/core/src/events/event-validator.ts, packages/core/src/privacy/storage.ts, packages/core/src/random.ts, packages/core/src/transport/sender.ts
Updated all error, warning, and debug log message prefixes from [AnalyticsSDK] to [Tanilytics] across event building, validation, privacy, random ID generation, and transport modules.
Core Tests & Documentation
packages/core/src/index.test.ts, packages/core/src/tracker.test.ts, packages/core/src/events/event-types.ts, packages/core/README.md
Updated test imports/assertions to use tanilytics identifier and VERSION constant, updated JSDoc examples, and rewrote core README with new package name and API references.
Media Adapter Packages & Build Config
packages/media-adapters/hlsjs/package.json, packages/media-adapters/hlsjs/vitest.config.mts, packages/media-adapters/videojs/package.json, packages/media-adapters/videojs/vitest.config.mts, packages/media-adapters/youtube/package.json, packages/media-adapters/youtube/vitest.config.mts
Renamed all adapter packages from @analytics-sdk/adapter-* to @tanilytics/adapter-*, updated Vitest test suite identifiers, and changed YouTube adapter dependencies from @analytics-sdk/core to tanilytics.
YouTube Adapter Implementation
packages/media-adapters/youtube/src/lib/config.ts, packages/media-adapters/youtube/src/lib/discovery.ts, packages/media-adapters/youtube/src/lib/types.ts, packages/media-adapters/youtube/src/lib/events.ts, packages/media-adapters/youtube/src/lib/youtube.ts, packages/media-adapters/youtube/src/lib/youtube.spec.ts, packages/media-adapters/youtube/README.md
Updated error message prefixes to [Tanilytics], changed import source of EventProperties type from @analytics-sdk/core to tanilytics, updated adapter README documentation and test assertions.
Root Project Documentation
README.md, AGENTS.md, .github/workflows/release.yml
Updated all package references from @analytics-sdk/* to tanilytics/@tanilytics/*, refreshed Quick Start and API examples with new namespacing, updated Nx command examples and npm publish steps in release workflow.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Poem

🐰 A rebrand hops into view,
From AnalyticsSDK to Tanilytics true,
Every name and prefix takes a leap,
Across the codebase, changes run deep,
With consistency bright, the SDK's brand new! ✨


Note

🎁 Summarized by CodeRabbit Free

The PR author is not assigned a seat. To perform a comprehensive line-by-line review, please assign a seat to the pull request author through the subscription management page by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

Copy link
Copy Markdown

@Ret2Hell Ret2Hell changed the title rename packages v0.4.0 Apr 25, 2026
@Ret2Hell
Ret2Hell merged commit 54878b4 into main Apr 25, 2026
3 checks passed
@Ret2Hell
Ret2Hell deleted the rename branch April 25, 2026 20:56

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 919eebff44

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

withdrawConsent,
EventTypes,
SDK_VERSION,
VERSION,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve SDK_VERSION alias on default export

This change removes SDK_VERSION from the public default export and replaces it with VERSION, which introduces a runtime compatibility break for existing integrations that read sdk.SDK_VERSION (for diagnostics, telemetry, or version pinning). If the goal is package renaming, keeping SDK_VERSION as an alias to VERSION would avoid forcing immediate consumer code changes.

Useful? React with 👍 / 👎.

MediaEventType,
} from './types';
export type { AnalyticsConfig } from './config/types';
export type { TanilyticsConfig } from './config/types';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Re-export AnalyticsConfig as a compatibility alias

The public type export was renamed from AnalyticsConfig to TanilyticsConfig, which causes downstream TypeScript builds to fail for consumers that import AnalyticsConfig from the package. Since this commit is primarily a package rename, adding a temporary alias export (for example type AnalyticsConfig = TanilyticsConfig) would prevent a hard compile-time break during migration.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant