@mastra/loggers 0.1.0 → 0.1.1

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,19 +1,19 @@
1
1
 
2
- > @mastra/loggers@0.1.0-alpha.29 build C:\Users\Ward\projects\mastra\mastra\packages\loggers
2
+ > @mastra/loggers@0.1.1-alpha.0 build C:\Users\Ward\projects\mastra\mastra\packages\loggers
3
3
  > tsup src/file/index.ts src/upstash/index.ts --format esm --experimental-dts --clean --treeshake
4
4
 
5
5
  CLI Building entry: src/file/index.ts, src/upstash/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 1050ms
9
+ TSC ⚡️ Build success in 2017ms
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: C:\Users\Ward\projects\mastra\mastra\packages\loggers\dist\_tsup-dts-rollup.d.ts
14
- DTS ⚡️ Build success in 1439ms
14
+ DTS ⚡️ Build success in 2391ms
15
15
  CLI Cleaning output folder
16
16
  ESM Build start
17
17
  ESM dist\file\index.js 1.33 KB
18
18
  ESM dist\upstash\index.js 3.38 KB
19
- ESM ⚡️ Build success in 95ms
19
+ ESM ⚡️ Build success in 320ms
@@ -0,0 +1,22 @@
1
+
2
+ > @mastra/loggers@0.1.0 lint C:\Users\Ward\projects\mastra\mastra\packages\loggers
3
+ > eslint .
4
+
5
+
6
+ C:\Users\Ward\projects\mastra\mastra\packages\loggers\src\file\index.test.ts
7
+ 1:1 warning `@mastra/core/logger` import should occur after import of `path` import/order
8
+ 4:44 warning 'afterEach' is defined but never used. Allowed unused vars must match /^ignored/u @typescript-eslint/no-unused-vars
9
+
10
+ C:\Users\Ward\projects\mastra\mastra\packages\loggers\src\file\index.ts
11
+ 3:1 warning `fs` type import should occur before import of `@mastra/core/logger` import/order
12
+ 4:1 warning `fs` import should occur before import of `@mastra/core/logger` import/order
13
+
14
+ C:\Users\Ward\projects\mastra\mastra\packages\loggers\src\upstash\index.test.ts
15
+ 107:11 warning 'errorObj' is assigned a value but never used. Allowed unused vars must match /^ignored/u @typescript-eslint/no-unused-vars
16
+
17
+ C:\Users\Ward\projects\mastra\mastra\packages\loggers\src\upstash\index.ts
18
+ 144:18 warning 'e' is defined but never used @typescript-eslint/no-unused-vars
19
+
20
+ ✖ 6 problems (0 errors, 6 warnings)
21
+ 0 errors and 3 warnings potentially fixable with the `--fix` option.
22
+
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @mastra/loggers
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 91ef439: Add eslint and ran autofix
8
+ - Updated dependencies [d59f1a8]
9
+ - Updated dependencies [91ef439]
10
+ - Updated dependencies [4a25be4]
11
+ - Updated dependencies [bf2e88f]
12
+ - Updated dependencies [2f0d707]
13
+ - Updated dependencies [aac1667]
14
+ - @mastra/core@0.2.1
15
+
16
+ ## 0.1.1-alpha.0
17
+
18
+ ### Patch Changes
19
+
20
+ - 91ef439: Add eslint and ran autofix
21
+ - Updated dependencies [d59f1a8]
22
+ - Updated dependencies [91ef439]
23
+ - Updated dependencies [4a25be4]
24
+ - Updated dependencies [bf2e88f]
25
+ - Updated dependencies [2f0d707]
26
+ - Updated dependencies [aac1667]
27
+ - @mastra/core@0.2.1-alpha.0
28
+
3
29
  ## 0.1.0
4
30
 
5
31
  ### Minor Changes
@@ -1,6 +1,6 @@
1
- import { BaseLogMessage } from '@mastra/core/logger';
1
+ import type { BaseLogMessage } from '@mastra/core/logger';
2
2
  import { LoggerTransport } from '@mastra/core/logger';
3
- import { WriteStream } from 'fs';
3
+ import type { WriteStream } from 'fs';
4
4
 
5
5
  export declare class FileTransport extends LoggerTransport {
6
6
  path: string;
@@ -0,0 +1,6 @@
1
+ import { createConfig } from '@internal/lint/eslint';
2
+
3
+ const config = await createConfig();
4
+
5
+ /** @type {import("eslint").Linter.Config[]} */
6
+ export default [...config];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/loggers",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -30,18 +30,21 @@
30
30
  "author": "",
31
31
  "license": "ISC",
32
32
  "dependencies": {
33
- "@mastra/core": "^0.2.0"
33
+ "@mastra/core": "^0.2.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@microsoft/api-extractor": "^7.49.2",
37
37
  "@types/node": "^22.13.1",
38
38
  "tsup": "^8.0.1",
39
39
  "typescript": "^5.7.3",
40
- "vitest": "^3.0.4"
40
+ "vitest": "^3.0.4",
41
+ "eslint": "^9.20.1",
42
+ "@internal/lint": "0.0.0"
41
43
  },
42
44
  "scripts": {
43
45
  "build": "tsup src/file/index.ts src/upstash/index.ts --format esm --experimental-dts --clean --treeshake",
44
46
  "build:watch": "pnpm build --watch",
45
- "test": "vitest run"
47
+ "test": "vitest run",
48
+ "lint": "eslint ."
46
49
  }
47
50
  }
package/src/file/index.ts CHANGED
@@ -1,5 +1,7 @@
1
- import { LoggerTransport, type BaseLogMessage } from '@mastra/core/logger';
2
- import { createWriteStream, existsSync, readFileSync, WriteStream } from 'fs';
1
+ import { LoggerTransport } from '@mastra/core/logger';
2
+ import type { BaseLogMessage } from '@mastra/core/logger';
3
+ import type { WriteStream } from 'fs';
4
+ import { createWriteStream, existsSync, readFileSync } from 'fs';
3
5
 
4
6
  export class FileTransport extends LoggerTransport {
5
7
  path: string;
@@ -1,4 +1,5 @@
1
- import { type BaseLogMessage, LoggerTransport } from '@mastra/core/logger';
1
+ import { LoggerTransport } from '@mastra/core/logger';
2
+ import type { BaseLogMessage } from '@mastra/core/logger';
2
3
 
3
4
  export class UpstashTransport extends LoggerTransport {
4
5
  upstashUrl: string;