@mastra/rag 0.1.5-alpha.1 → 0.1.5-alpha.2

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,18 +1,18 @@
1
1
 
2
- > @mastra/rag@0.1.5-alpha.1 build /home/runner/work/mastra/mastra/packages/rag
2
+ > @mastra/rag@0.1.5-alpha.2 build /home/runner/work/mastra/mastra/packages/rag
3
3
  > tsup src/index.ts --format esm --experimental-dts --clean --treeshake
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.3.6
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 23604ms
9
+ TSC ⚡️ Build success in 22390ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.7.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/packages/rag/dist/_tsup-dts-rollup.d.ts
14
- DTS ⚡️ Build success in 19094ms
14
+ DTS ⚡️ Build success in 18818ms
15
15
  CLI Cleaning output folder
16
16
  ESM Build start
17
- ESM dist/index.js 83.24 KB
18
- ESM ⚡️ Build success in 1358ms
17
+ ESM dist/index.js 83.23 KB
18
+ ESM ⚡️ Build success in 1096ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @mastra/rag
2
2
 
3
+ ## 0.1.5-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8d94c3e]
8
+ - Updated dependencies [99dcdb5]
9
+ - Updated dependencies [e752340]
10
+ - Updated dependencies [eb91535]
11
+ - @mastra/core@0.4.2-alpha.2
12
+
3
13
  ## 0.1.5-alpha.1
4
14
 
5
15
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1012,7 +1012,7 @@ var TokenTransformer = class _TokenTransformer extends TextTransformer {
1012
1012
  super(options);
1013
1013
  try {
1014
1014
  this.tokenizer = modelName ? encodingForModel(modelName) : getEncoding(encodingName);
1015
- } catch (error) {
1015
+ } catch {
1016
1016
  throw new Error("Could not load tiktoken encoding. Please install it with `npm install js-tiktoken`.");
1017
1017
  }
1018
1018
  this.allowedSpecial = allowedSpecial;
@@ -1049,7 +1049,7 @@ var TokenTransformer = class _TokenTransformer extends TextTransformer {
1049
1049
  } else {
1050
1050
  tokenizer = getEncoding(encodingName);
1051
1051
  }
1052
- } catch (error) {
1052
+ } catch {
1053
1053
  throw new Error("Could not load tiktoken encoding. Please install it with `npm install js-tiktoken`.");
1054
1054
  }
1055
1055
  const tikTokenEncoder = (text) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/rag",
3
- "version": "0.1.5-alpha.1",
3
+ "version": "0.1.5-alpha.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "node-html-better-parser": "^1.4.7",
26
26
  "pathe": "^2.0.2",
27
27
  "zod": "^3.24.1",
28
- "@mastra/core": "^0.4.2-alpha.1"
28
+ "@mastra/core": "^0.4.2-alpha.2"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "ai": "^4.0.0"
@@ -59,7 +59,7 @@ export class TokenTransformer extends TextTransformer {
59
59
 
60
60
  try {
61
61
  this.tokenizer = modelName ? encodingForModel(modelName) : getEncoding(encodingName);
62
- } catch (error) {
62
+ } catch {
63
63
  throw new Error('Could not load tiktoken encoding. ' + 'Please install it with `npm install js-tiktoken`.');
64
64
  }
65
65
 
@@ -115,7 +115,7 @@ export class TokenTransformer extends TextTransformer {
115
115
  } else {
116
116
  tokenizer = getEncoding(encodingName);
117
117
  }
118
- } catch (error) {
118
+ } catch {
119
119
  throw new Error('Could not load tiktoken encoding. ' + 'Please install it with `npm install js-tiktoken`.');
120
120
  }
121
121
 
@@ -1,4 +1,4 @@
1
- import { describe, it, expect, vi, beforeAll, afterAll, beforeEach, afterEach } from 'vitest';
1
+ import { describe, it, expect, vi, beforeEach } from 'vitest';
2
2
 
3
3
  import type { GraphChunk, GraphEdge, GraphEmbedding, GraphNode } from './';
4
4
  import { GraphRAG } from './';