@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.
- package/.turbo/turbo-build.log +4 -4
- package/.turbo/turbo-lint.log +22 -0
- package/CHANGELOG.md +26 -0
- package/dist/_tsup-dts-rollup.d.ts +2 -2
- package/eslint.config.js +6 -0
- package/package.json +7 -4
- package/src/file/index.ts +4 -2
- package/src/upstash/index.ts +2 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/loggers@0.1.
|
|
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
|
[34mCLI[39m Building entry: src/file/index.ts, src/upstash/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.3.6
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 2017ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.7.3
|
|
13
13
|
[36mWriting package typings: C:\Users\Ward\projects\mastra\mastra\packages\loggers\dist\_tsup-dts-rollup.d.ts[39m
|
|
14
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 2391ms
|
|
15
15
|
[34mCLI[39m Cleaning output folder
|
|
16
16
|
[34mESM[39m Build start
|
|
17
17
|
[32mESM[39m [1mdist\file\index.js [22m[32m1.33 KB[39m
|
|
18
18
|
[32mESM[39m [1mdist\upstash\index.js [22m[32m3.38 KB[39m
|
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
|
19
|
+
[32mESM[39m ⚡️ 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;
|
package/eslint.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/loggers",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
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
|
|
2
|
-
import {
|
|
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;
|
package/src/upstash/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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;
|