@use-tusk/drift-node-sdk 0.1.19 → 0.1.21
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/index.cjs +463 -444
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +463 -444
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -35,7 +35,8 @@ interface TuskDriftNextOptions {
|
|
|
35
35
|
*
|
|
36
36
|
* This function automatically configures Next.js to work with Tusk Drift by:
|
|
37
37
|
* - Enabling the Next.js instrumentation hook (for Next.js < 15.0.0-rc.1)
|
|
38
|
-
* - Configuring
|
|
38
|
+
* - Configuring server external packages to prevent bundling of core instrumentation packages
|
|
39
|
+
* - Supporting both webpack and Turbopack bundlers
|
|
39
40
|
* - Preserving your existing Next.js configuration and webpack customizations
|
|
40
41
|
*
|
|
41
42
|
* @param nextConfig - Your existing Next.js configuration object (optional)
|
|
@@ -70,9 +71,12 @@ interface TuskDriftNextOptions {
|
|
|
70
71
|
* ```
|
|
71
72
|
*
|
|
72
73
|
* @remarks
|
|
73
|
-
* The following
|
|
74
|
+
* The following packages are added as server externals for both webpack and Turbopack:
|
|
74
75
|
* - `require-in-the-middle` - Required for CommonJS module interception
|
|
75
76
|
* - `jsonpath` - Required for schema manipulation
|
|
77
|
+
* - Additional packages when TUSK_DRIFT_MODE is RECORD or REPLAY (e.g., database clients, etc.)
|
|
78
|
+
*
|
|
79
|
+
* Works with both webpack (default) and Turbopack (`next dev --turbo`).
|
|
76
80
|
*/
|
|
77
81
|
declare function withTuskDrift(nextConfig?: NextConfig, options?: TuskDriftNextOptions): NextConfig;
|
|
78
82
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,8 @@ interface TuskDriftNextOptions {
|
|
|
35
35
|
*
|
|
36
36
|
* This function automatically configures Next.js to work with Tusk Drift by:
|
|
37
37
|
* - Enabling the Next.js instrumentation hook (for Next.js < 15.0.0-rc.1)
|
|
38
|
-
* - Configuring
|
|
38
|
+
* - Configuring server external packages to prevent bundling of core instrumentation packages
|
|
39
|
+
* - Supporting both webpack and Turbopack bundlers
|
|
39
40
|
* - Preserving your existing Next.js configuration and webpack customizations
|
|
40
41
|
*
|
|
41
42
|
* @param nextConfig - Your existing Next.js configuration object (optional)
|
|
@@ -70,9 +71,12 @@ interface TuskDriftNextOptions {
|
|
|
70
71
|
* ```
|
|
71
72
|
*
|
|
72
73
|
* @remarks
|
|
73
|
-
* The following
|
|
74
|
+
* The following packages are added as server externals for both webpack and Turbopack:
|
|
74
75
|
* - `require-in-the-middle` - Required for CommonJS module interception
|
|
75
76
|
* - `jsonpath` - Required for schema manipulation
|
|
77
|
+
* - Additional packages when TUSK_DRIFT_MODE is RECORD or REPLAY (e.g., database clients, etc.)
|
|
78
|
+
*
|
|
79
|
+
* Works with both webpack (default) and Turbopack (`next dev --turbo`).
|
|
76
80
|
*/
|
|
77
81
|
declare function withTuskDrift(nextConfig?: NextConfig, options?: TuskDriftNextOptions): NextConfig;
|
|
78
82
|
//#endregion
|