@yak-io/nextjs 0.2.0 → 0.3.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.
@@ -1,11 +1,6 @@
1
1
  /**
2
- * Simple logger utility - no-op by default
3
- * Can be replaced with proper logging later
2
+ * Re-export logger from @yak-io/javascript.
3
+ * All logging configuration is centralized there.
4
4
  */
5
- export declare const logger: {
6
- debug: (message: string, ...args: unknown[]) => void;
7
- info: (message: string, ...args: unknown[]) => void;
8
- warn: (message: string, ...args: unknown[]) => void;
9
- error: (message: string, ...args: unknown[]) => void;
10
- };
5
+ export { logger } from "@yak-io/javascript";
11
6
  //# sourceMappingURL=logger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/internal/logger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,MAAM;qBACA,MAAM,WAAW,OAAO,EAAE,KAAG,IAAI;oBAOlC,MAAM,WAAW,OAAO,EAAE,KAAG,IAAI;oBAMjC,MAAM,WAAW,OAAO,EAAE,KAAG,IAAI;qBAIhC,MAAM,WAAW,OAAO,EAAE,KAAG,IAAI;CAGnD,CAAC"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/internal/logger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,23 +1,5 @@
1
1
  /**
2
- * Simple logger utility - no-op by default
3
- * Can be replaced with proper logging later
2
+ * Re-export logger from @yak-io/javascript.
3
+ * All logging configuration is centralized there.
4
4
  */
5
- export const logger = {
6
- debug: (message, ...args) => {
7
- // No-op in production, could log in development
8
- if (process.env.NODE_ENV === "development") {
9
- console.debug(`[yak/nextjs] ${message}`, ...args);
10
- }
11
- },
12
- info: (message, ...args) => {
13
- if (process.env.NODE_ENV === "development") {
14
- console.info(`[yak/nextjs] ${message}`, ...args);
15
- }
16
- },
17
- warn: (message, ...args) => {
18
- console.warn(`[yak/nextjs] ${message}`, ...args);
19
- },
20
- error: (message, ...args) => {
21
- console.error(`[yak/nextjs] ${message}`, ...args);
22
- },
23
- };
5
+ export { logger } from "@yak-io/javascript";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yak-io/nextjs",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Next.js SDK for embedding yak chatbot with route manifest generation",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -60,11 +60,11 @@
60
60
  "yak-nextjs": "./dist/cli/generate-manifest.js"
61
61
  },
62
62
  "dependencies": {
63
- "@yak-io/javascript": "0.2.0",
64
- "@yak-io/react": "0.2.0"
63
+ "@yak-io/javascript": "0.3.0",
64
+ "@yak-io/react": "0.3.0"
65
65
  },
66
66
  "peerDependencies": {
67
- "next": "^14.0.0 || ^15.0.0",
67
+ "next": "^14.0.0 || ^15.0.0 || ^16.0.0",
68
68
  "react": "^18.0.0 || ^19.0.0",
69
69
  "react-dom": "^18.0.0 || ^19.0.0"
70
70
  },