create-better-t-stack 3.6.7 → 3.7.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/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as createBtsCli } from "./src-BMcSQ5Qw.js";
2
+ import { n as createBtsCli } from "./src-CPJF6Hyu.js";
3
3
 
4
4
  //#region src/cli.ts
5
5
  createBtsCli().run();
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-BMcSQ5Qw.js";
2
+ import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-CPJF6Hyu.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -1347,7 +1347,7 @@ const getLatestCLIVersion = () => {
1347
1347
  */
1348
1348
  function isTelemetryEnabled() {
1349
1349
  const BTS_TELEMETRY_DISABLED = process.env.BTS_TELEMETRY_DISABLED;
1350
- const BTS_TELEMETRY = "1";
1350
+ const BTS_TELEMETRY = "0";
1351
1351
  if (BTS_TELEMETRY_DISABLED !== void 0) return BTS_TELEMETRY_DISABLED !== "1";
1352
1352
  if (BTS_TELEMETRY !== void 0) return BTS_TELEMETRY === "1";
1353
1353
  return true;
@@ -1355,33 +1355,26 @@ function isTelemetryEnabled() {
1355
1355
 
1356
1356
  //#endregion
1357
1357
  //#region src/utils/analytics.ts
1358
- const POSTHOG_API_KEY = "phc_8ZUxEwwfKMajJLvxz1daGd931dYbQrwKNficBmsdIrs";
1359
- const POSTHOG_HOST = "https://us.i.posthog.com";
1360
- function generateSessionId() {
1361
- const rand = Math.random().toString(36).slice(2);
1362
- return `cli_${Date.now().toString(36)}${rand}`;
1358
+ const CONVEX_INGEST_URL = "https://striped-seahorse-863.convex.site/api/analytics/ingest";
1359
+ async function sendConvexEvent(payload) {
1360
+ try {
1361
+ await fetch(CONVEX_INGEST_URL, {
1362
+ method: "POST",
1363
+ headers: { "Content-Type": "application/json" },
1364
+ body: JSON.stringify(payload)
1365
+ });
1366
+ } catch (_error) {}
1363
1367
  }
1364
1368
  async function trackProjectCreation(config, disableAnalytics = false) {
1365
1369
  if (!isTelemetryEnabled() || disableAnalytics) return;
1366
- const sessionId = generateSessionId();
1367
1370
  const { projectName, projectDir, relativePath,...safeConfig } = config;
1368
- const payload = {
1369
- api_key: POSTHOG_API_KEY,
1370
- event: "project_created",
1371
- properties: {
1371
+ try {
1372
+ await sendConvexEvent({
1373
+ event: "project_created",
1372
1374
  ...safeConfig,
1373
1375
  cli_version: getLatestCLIVersion(),
1374
1376
  node_version: typeof process !== "undefined" ? process.version : "",
1375
- platform: typeof process !== "undefined" ? process.platform : "",
1376
- $ip: null
1377
- },
1378
- distinct_id: sessionId
1379
- };
1380
- try {
1381
- await fetch(`${POSTHOG_HOST}/capture`, {
1382
- method: "POST",
1383
- headers: { "Content-Type": "application/json" },
1384
- body: JSON.stringify(payload)
1377
+ platform: typeof process !== "undefined" ? process.platform : ""
1385
1378
  });
1386
1379
  } catch (_error) {}
1387
1380
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.6.7",
3
+ "version": "3.7.0",
4
4
  "description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -13,10 +13,10 @@
13
13
  "class-variance-authority": "^0.7.1",
14
14
  "clsx": "^2.1.1",
15
15
  "lucide-react": "^0.546.0",
16
- "next": "16.0.0",
16
+ "next": "^16.0.7",
17
17
  "next-themes": "^0.4.6",
18
- "react": "19.2.0",
19
- "react-dom": "19.2.0",
18
+ "react": "19.1.2",
19
+ "react-dom": "19.1.2",
20
20
  "sonner": "^2.0.5",
21
21
  "tailwind-merge": "^3.3.1",
22
22
  "tw-animate-css": "^1.3.4",
@@ -19,8 +19,8 @@
19
19
  "isbot": "^5.1.28",
20
20
  "lucide-react": "^0.511.0",
21
21
  "next-themes": "^0.4.6",
22
- "react": "19.1.0",
23
- "react-dom": "19.1.0",
22
+ "react": "19.1.2",
23
+ "react-dom": "19.1.2",
24
24
  "react-router": "^7.6.1",
25
25
  "sonner": "^2.0.3",
26
26
  "tailwind-merge": "^3.3.0",
@@ -20,8 +20,8 @@
20
20
  "clsx": "^2.1.1",
21
21
  "lucide-react": "^0.473.0",
22
22
  "next-themes": "^0.4.6",
23
- "react": "19.1.0",
24
- "react-dom": "19.1.0",
23
+ "react": "19.1.2",
24
+ "react-dom": "19.1.2",
25
25
  "sonner": "^2.0.5",
26
26
  "tailwind-merge": "^3.3.1",
27
27
  "tw-animate-css": "^1.2.5",
@@ -20,8 +20,8 @@
20
20
  "clsx": "^2.1.1",
21
21
  "lucide-react": "^0.525.0",
22
22
  "next-themes": "^0.4.6",
23
- "react": "19.1.0",
24
- "react-dom": "19.1.0",
23
+ "react": "19.1.2",
24
+ "react-dom": "19.1.2",
25
25
  "sonner": "^2.0.3",
26
26
  "tailwindcss": "^4.1.3",
27
27
  "tailwind-merge": "^3.3.1",