braintrust 3.9.0 → 3.10.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.
Files changed (42) hide show
  1. package/dev/dist/index.d.mts +107 -1
  2. package/dev/dist/index.d.ts +107 -1
  3. package/dev/dist/index.js +2126 -443
  4. package/dev/dist/index.mjs +1814 -131
  5. package/dist/auto-instrumentations/bundler/esbuild.cjs +166 -0
  6. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  7. package/dist/auto-instrumentations/bundler/rollup.cjs +166 -0
  8. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/vite.cjs +166 -0
  10. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  11. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +163 -0
  12. package/dist/auto-instrumentations/bundler/webpack.cjs +166 -0
  13. package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
  14. package/dist/auto-instrumentations/{chunk-KIMMUFAK.mjs → chunk-GZNXBBPU.mjs} +164 -1
  15. package/dist/auto-instrumentations/{chunk-G7F6HZGE.mjs → chunk-XWEQQOQH.mjs} +8 -1
  16. package/dist/auto-instrumentations/hook.mjs +255 -8
  17. package/dist/auto-instrumentations/index.cjs +256 -7
  18. package/dist/auto-instrumentations/index.d.mts +5 -1
  19. package/dist/auto-instrumentations/index.d.ts +5 -1
  20. package/dist/auto-instrumentations/index.mjs +96 -8
  21. package/dist/browser.d.mts +141 -7
  22. package/dist/browser.d.ts +141 -7
  23. package/dist/browser.js +2035 -140
  24. package/dist/browser.mjs +2035 -140
  25. package/dist/cli.js +1822 -139
  26. package/dist/edge-light.d.mts +1 -1
  27. package/dist/edge-light.d.ts +1 -1
  28. package/dist/edge-light.js +2035 -140
  29. package/dist/edge-light.mjs +2035 -140
  30. package/dist/index.d.mts +141 -7
  31. package/dist/index.d.ts +141 -7
  32. package/dist/index.js +2397 -502
  33. package/dist/index.mjs +2035 -140
  34. package/dist/instrumentation/index.d.mts +7 -0
  35. package/dist/instrumentation/index.d.ts +7 -0
  36. package/dist/instrumentation/index.js +1662 -167
  37. package/dist/instrumentation/index.mjs +1662 -167
  38. package/dist/workerd.d.mts +1 -1
  39. package/dist/workerd.d.ts +1 -1
  40. package/dist/workerd.js +2035 -140
  41. package/dist/workerd.mjs +2035 -140
  42. package/package.json +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braintrust",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "description": "SDK for integrating Braintrust",
5
5
  "repository": {
6
6
  "type": "git",
@@ -79,13 +79,13 @@
79
79
  "types": "./dist/auto-instrumentations/bundler/vite.d.ts",
80
80
  "import": "./dist/auto-instrumentations/bundler/vite.mjs",
81
81
  "module": "./dist/auto-instrumentations/bundler/vite.mjs",
82
- "require": "./dist/auto-instrumentations/bundler/vite.js"
82
+ "require": "./dist/auto-instrumentations/bundler/vite.cjs"
83
83
  },
84
84
  "./webpack": {
85
85
  "types": "./dist/auto-instrumentations/bundler/webpack.d.ts",
86
86
  "import": "./dist/auto-instrumentations/bundler/webpack.mjs",
87
87
  "module": "./dist/auto-instrumentations/bundler/webpack.mjs",
88
- "require": "./dist/auto-instrumentations/bundler/webpack.js"
88
+ "require": "./dist/auto-instrumentations/bundler/webpack.cjs"
89
89
  },
90
90
  "./webpack-loader": {
91
91
  "types": "./dist/auto-instrumentations/bundler/webpack-loader.d.ts",
@@ -95,13 +95,13 @@
95
95
  "types": "./dist/auto-instrumentations/bundler/esbuild.d.ts",
96
96
  "import": "./dist/auto-instrumentations/bundler/esbuild.mjs",
97
97
  "module": "./dist/auto-instrumentations/bundler/esbuild.mjs",
98
- "require": "./dist/auto-instrumentations/bundler/esbuild.js"
98
+ "require": "./dist/auto-instrumentations/bundler/esbuild.cjs"
99
99
  },
100
100
  "./rollup": {
101
101
  "types": "./dist/auto-instrumentations/bundler/rollup.d.ts",
102
102
  "import": "./dist/auto-instrumentations/bundler/rollup.mjs",
103
103
  "module": "./dist/auto-instrumentations/bundler/rollup.mjs",
104
- "require": "./dist/auto-instrumentations/bundler/rollup.js"
104
+ "require": "./dist/auto-instrumentations/bundler/rollup.cjs"
105
105
  }
106
106
  },
107
107
  "files": [
@@ -113,7 +113,7 @@
113
113
  "build": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" tsup",
114
114
  "check:typings": "tsc --noEmit",
115
115
  "watch": "tsup --watch",
116
- "clean": "rm -r dist/* && rm -r dev/dist/*",
116
+ "clean": "rm -r dist/* && rm -r dev/dist/* && rm -r util/dist/*",
117
117
  "docs": "typedoc --options typedoc.json src/node/index.ts",
118
118
  "test": "vitest run --exclude \"src/wrappers/**/*.test.ts\" --exclude \"src/otel/**/*.test.ts\" --exclude \"smoke/**/*.test.ts\" --exclude \"src/zod/**/*.test.ts\" --exclude \"tests/api-compatibility/**\"",
119
119
  "test:core": "pnpm prune && pnpm test",