@trebired/logger 2.5.0 → 2.5.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.
- package/CHANGELOG.md +4 -1
- package/dist/backend/utils/normalize.d.ts +2 -0
- package/dist/backend/utils/normalize.d.ts.map +1 -0
- package/dist/backend/utils/normalize.js +4 -0
- package/dist/backend/utils/normalize.js.map +1 -0
- package/dist/backend/utils/object.d.ts +3 -0
- package/dist/backend/utils/object.d.ts.map +1 -0
- package/dist/backend/utils/object.js +12 -0
- package/dist/backend/utils/object.js.map +1 -0
- package/dist/backend/utils/time.d.ts +3 -0
- package/dist/backend/utils/time.d.ts.map +1 -0
- package/dist/backend/utils/time.js +7 -0
- package/dist/backend/utils/time.js.map +1 -0
- package/dist/browser/console_transport.d.ts +1 -1
- package/dist/browser/console_transport.d.ts.map +1 -1
- package/dist/browser/console_transport.js +3 -3
- package/dist/browser/console_transport.js.map +1 -1
- package/dist/browser/create_log.d.ts +1 -1
- package/dist/browser/create_log.d.ts.map +1 -1
- package/dist/browser/create_log.js +5 -5
- package/dist/browser/create_log.js.map +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/react.d.ts +1 -1
- package/dist/browser/react.d.ts.map +1 -1
- package/dist/config/console_visibility.js +3 -3
- package/dist/config/console_visibility.js.map +1 -1
- package/dist/core/create_log/api.d.ts +6 -0
- package/dist/core/create_log/api.d.ts.map +1 -0
- package/dist/core/create_log/api.js +182 -0
- package/dist/core/create_log/api.js.map +1 -0
- package/dist/core/create_log/finalize.d.ts +16 -0
- package/dist/core/create_log/finalize.d.ts.map +1 -0
- package/dist/core/create_log/finalize.js +197 -0
- package/dist/core/create_log/finalize.js.map +1 -0
- package/dist/core/create_log/runtime.d.ts +44 -0
- package/dist/core/create_log/runtime.d.ts.map +1 -0
- package/dist/core/create_log/runtime.js +212 -0
- package/dist/core/create_log/runtime.js.map +1 -0
- package/dist/core/create_log.d.ts +1 -1
- package/dist/core/create_log.d.ts.map +1 -1
- package/dist/core/create_log.js +15 -387
- package/dist/core/create_log.js.map +1 -1
- package/dist/core/shared.d.ts +1 -1
- package/dist/core/shared.d.ts.map +1 -1
- package/dist/core/shared.js +123 -62
- package/dist/core/shared.js.map +1 -1
- package/dist/format/console.d.ts +1 -1
- package/dist/format/console.d.ts.map +1 -1
- package/dist/format/console.js +2 -2
- package/dist/format/console.js.map +1 -1
- package/dist/format/options.d.ts +1 -1
- package/dist/format/options.d.ts.map +1 -1
- package/dist/format/options.js +1 -1
- package/dist/format/options.js.map +1 -1
- package/dist/frontend/js/utils/text.d.ts +2 -0
- package/dist/frontend/js/utils/text.d.ts.map +1 -0
- package/dist/frontend/js/utils/text.js +4 -0
- package/dist/frontend/js/utils/text.js.map +1 -0
- package/dist/levels/index.d.ts +1 -1
- package/dist/levels/index.d.ts.map +1 -1
- package/dist/levels/index.js +2 -2
- package/dist/levels/index.js.map +1 -1
- package/dist/metadata/process.d.ts +1 -1
- package/dist/metadata/process.d.ts.map +1 -1
- package/dist/metadata/process.js +2 -2
- package/dist/metadata/process.js.map +1 -1
- package/dist/middleware/request.d.ts +1 -1
- package/dist/middleware/request.d.ts.map +1 -1
- package/dist/middleware/request.js +1 -1
- package/dist/middleware/request.js.map +1 -1
- package/dist/storage/backend/js.d.ts.map +1 -1
- package/dist/storage/backend/js.js +50 -32
- package/dist/storage/backend/js.js.map +1 -1
- package/dist/storage/backend/native.d.ts +1 -1
- package/dist/storage/backend/native.d.ts.map +1 -1
- package/dist/storage/backend/types.d.ts +1 -1
- package/dist/storage/backend/types.d.ts.map +1 -1
- package/dist/storage/export.d.ts +1 -1
- package/dist/storage/export.d.ts.map +1 -1
- package/dist/storage/export.js +1 -1
- package/dist/storage/export.js.map +1 -1
- package/dist/storage/names.d.ts +1 -1
- package/dist/storage/names.d.ts.map +1 -1
- package/dist/storage/names.js +4 -4
- package/dist/storage/names.js.map +1 -1
- package/dist/storage/options.d.ts +1 -1
- package/dist/storage/options.d.ts.map +1 -1
- package/dist/storage/options.js +1 -1
- package/dist/storage/options.js.map +1 -1
- package/dist/storage/partitions/delete.d.ts +1 -1
- package/dist/storage/partitions/delete.d.ts.map +1 -1
- package/dist/storage/partitions/delete.js +1 -1
- package/dist/storage/partitions/delete.js.map +1 -1
- package/dist/storage/partitions/files.d.ts +2 -2
- package/dist/storage/partitions/files.d.ts.map +1 -1
- package/dist/storage/partitions/files.js +4 -4
- package/dist/storage/partitions/files.js.map +1 -1
- package/dist/storage/partitions/internal.d.ts +2 -2
- package/dist/storage/partitions/internal.d.ts.map +1 -1
- package/dist/storage/partitions/internal.js +1 -1
- package/dist/storage/partitions/internal.js.map +1 -1
- package/dist/storage/partitions/markers.js +2 -2
- package/dist/storage/partitions/markers.js.map +1 -1
- package/dist/storage/partitions/public.d.ts +1 -1
- package/dist/storage/partitions/public.d.ts.map +1 -1
- package/dist/storage/partitions/public.js +1 -1
- package/dist/storage/partitions/public.js.map +1 -1
- package/dist/storage/partitions/records.d.ts +1 -1
- package/dist/storage/partitions/records.d.ts.map +1 -1
- package/dist/storage/partitions/records.js +3 -3
- package/dist/storage/partitions/records.js.map +1 -1
- package/dist/storage/partitions/rewrite.d.ts +2 -2
- package/dist/storage/partitions/rewrite.d.ts.map +1 -1
- package/dist/storage/partitions/rewrite.js +2 -2
- package/dist/storage/partitions/rewrite.js.map +1 -1
- package/dist/storage/partitions/transforms.d.ts +1 -1
- package/dist/storage/partitions/transforms.d.ts.map +1 -1
- package/dist/storage/partitions/transforms.js +2 -2
- package/dist/storage/partitions/transforms.js.map +1 -1
- package/dist/storage/query/rows.d.ts +2 -2
- package/dist/storage/query/rows.d.ts.map +1 -1
- package/dist/storage/query/shared.d.ts +2 -2
- package/dist/storage/query/shared.d.ts.map +1 -1
- package/dist/storage/query/shared.js +2 -2
- package/dist/storage/query/shared.js.map +1 -1
- package/dist/storage/query/summary.d.ts +2 -2
- package/dist/storage/query/summary.d.ts.map +1 -1
- package/dist/storage/query/summary.js +2 -2
- package/dist/storage/query/summary.js.map +1 -1
- package/dist/storage/query.d.ts +1 -1
- package/dist/storage/query.d.ts.map +1 -1
- package/dist/storage/query.js +1 -1
- package/dist/storage/query.js.map +1 -1
- package/dist/storage/retention.d.ts +1 -1
- package/dist/storage/retention.d.ts.map +1 -1
- package/dist/storage/retention.js +30 -19
- package/dist/storage/retention.js.map +1 -1
- package/dist/storage/walk.js +1 -1
- package/dist/storage/walk.js.map +1 -1
- package/dist/storage/write.d.ts +1 -1
- package/dist/storage/write.d.ts.map +1 -1
- package/dist/storage/write.js +2 -2
- package/dist/storage/write.js.map +1 -1
- package/dist/utils/values.d.ts +4 -5
- package/dist/utils/values.d.ts.map +1 -1
- package/dist/utils/values.js +4 -5
- package/dist/utils/values.js.map +1 -1
- package/package.json +133 -58
package/package.json
CHANGED
|
@@ -1,51 +1,39 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@trebired/logger",
|
|
3
|
-
"version": "2.5.0",
|
|
4
|
-
"description": "Local-first JSONL logger with durable writes, partitions, export archives, native storage acceleration, redaction, query helpers, and browser runtimes.",
|
|
5
|
-
"license": "AGPL-3.0-only",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"logger",
|
|
8
|
-
"logging",
|
|
9
|
-
"structured-logging",
|
|
10
|
-
"jsonl",
|
|
11
|
-
"backend",
|
|
12
|
-
"browser",
|
|
13
|
-
"frontend",
|
|
14
|
-
"node",
|
|
15
|
-
"bun"
|
|
16
|
-
],
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "https://github.com/Trebired/logger"
|
|
20
|
-
},
|
|
21
2
|
"bugs": {
|
|
22
3
|
"url": "https://github.com/Trebired/logger/issues"
|
|
23
4
|
},
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"node": ">=18",
|
|
28
|
-
"bun": ">=1.0.0"
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"fflate": "^0.8.3",
|
|
7
|
+
"tar-stream": "^3.2.0"
|
|
29
8
|
},
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
9
|
+
"description": "Local-first JSONL logger with durable writes, partitions, export archives, native storage acceleration, redaction, query helpers, and browser runtimes.",
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@trebired/code-discipline": "^2.1.1",
|
|
12
|
+
"@types/bun": "^1.3.4",
|
|
13
|
+
"@types/node": "^24.10.1",
|
|
14
|
+
"@types/react": "^19.2.2",
|
|
15
|
+
"@types/react-test-renderer": "^19.1.0",
|
|
16
|
+
"@types/tar-stream": "^3.1.4",
|
|
17
|
+
"react": "^19.2.0",
|
|
18
|
+
"react-test-renderer": "^19.2.0",
|
|
19
|
+
"typescript": "^6.0.2"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"bun": ">=1.0.0",
|
|
23
|
+
"node": ">=18"
|
|
33
24
|
},
|
|
34
|
-
"packageManager": "bun@1.3.12",
|
|
35
|
-
"main": "./dist/index.js",
|
|
36
|
-
"types": "./dist/index.d.ts",
|
|
37
25
|
"exports": {
|
|
38
26
|
".": {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts"
|
|
41
29
|
},
|
|
42
30
|
"./browser": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
31
|
+
"import": "./dist/browser/index.js",
|
|
32
|
+
"types": "./dist/browser/index.d.ts"
|
|
45
33
|
},
|
|
46
34
|
"./browser/react": {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
35
|
+
"import": "./dist/browser/react.js",
|
|
36
|
+
"types": "./dist/browser/react.d.ts"
|
|
49
37
|
}
|
|
50
38
|
},
|
|
51
39
|
"files": [
|
|
@@ -55,6 +43,112 @@
|
|
|
55
43
|
"LICENSE",
|
|
56
44
|
"README.md"
|
|
57
45
|
],
|
|
46
|
+
"homepage": "https://github.com/Trebired/logger#readme",
|
|
47
|
+
"imports": {
|
|
48
|
+
"#05gqzg490sdf": "./test/specs/runtime.spec.ts",
|
|
49
|
+
"#08atyj8ixt0i": "./src/storage/partitions/internal.ts",
|
|
50
|
+
"#0c4ri7nq63zi": "./src/utils/datetime.ts",
|
|
51
|
+
"#0ns6umc1i7ld": "./src/types/common.ts",
|
|
52
|
+
"#1qrb8ldbr5aj": "./src/storage/backend/index.ts",
|
|
53
|
+
"#2qi0ju8pcrs2": "./src/backend/utils/object.ts",
|
|
54
|
+
"#4gn2x99lawde": "./src/core/create_log.ts",
|
|
55
|
+
"#4riod1305goy": "./src/types/server.ts",
|
|
56
|
+
"#51dxqj3cwnrj": "./src/storage/retention.ts",
|
|
57
|
+
"#5b2ar2e6zs0u": "./src/types/query.ts",
|
|
58
|
+
"#5df776pxoxh5": "./src/storage/partitions/public.ts",
|
|
59
|
+
"#60bftlbj9ito": "./src/storage/partitions/markers.ts",
|
|
60
|
+
"#6ps29jch1ctx": "./test/specs/partition_core.spec.ts",
|
|
61
|
+
"#76iooq23kphm": "./src/storage/partitions.ts",
|
|
62
|
+
"#84wm1krbmyck": "./src/storage/backend/types.ts",
|
|
63
|
+
"#8607cs1qtyle": "./test/specs/helpers.ts",
|
|
64
|
+
"#8ky9lhu2jb5d": "./src/storage/query/rows.ts",
|
|
65
|
+
"#8xmnu037caa7": "./src/groups.ts",
|
|
66
|
+
"#8y9zkb2bigg2": "./src/middleware/request.ts",
|
|
67
|
+
"#91t1cde9d892": "./src/storage/partitions/files.ts",
|
|
68
|
+
"#a505p6xv4tf1": "./src/frontend/js/utils/text.ts",
|
|
69
|
+
"#a65l0o2g0gzz": "./src/storage/query/summary.ts",
|
|
70
|
+
"#b2k4pfb67duj": "./src/format/options.ts",
|
|
71
|
+
"#b5whz9hbbjxl": "./src/storage/partitions/transforms.ts",
|
|
72
|
+
"#ba7ifj8hgxox": "./test/specs/console_visibility.spec.ts",
|
|
73
|
+
"#cpmz8lycnjch": "./src/storage/partitions/records.ts",
|
|
74
|
+
"#cuh2x5snaefd": "./src/constants.ts",
|
|
75
|
+
"#e1h3ay0cyhgl": "./src/types/index.ts",
|
|
76
|
+
"#ee9snkkshbj2": "./src/index.ts",
|
|
77
|
+
"#el1ku1tpilhr": "./test/browser.spec.ts",
|
|
78
|
+
"#es1u80ni3c9a": "./test/specs/time_retention.spec.ts",
|
|
79
|
+
"#g4tupkl7rvk4": "./src/levels/index.ts",
|
|
80
|
+
"#g50wuco0huop": "./src/core/create_log/api.ts",
|
|
81
|
+
"#ge4ag9cokool": "./test/specs/export.spec.ts",
|
|
82
|
+
"#gvcc9893bkqo": "./src/browser/index.ts",
|
|
83
|
+
"#h0uexrz2k072": "./src/storage/partitions/errors.ts",
|
|
84
|
+
"#ho6lw68jfenw": "./src/storage/backend/native.ts",
|
|
85
|
+
"#iaj6xqns4o0s": "./src/stream/index.ts",
|
|
86
|
+
"#j80q3vhqp4d3": "./test/specs/advanced.spec.ts",
|
|
87
|
+
"#jaal40numbzs": "./src/storage/backend/js.ts",
|
|
88
|
+
"#jp65xdmizety": "./src/config/console_visibility.ts",
|
|
89
|
+
"#koef894lepm1": "./src/types/browser.ts",
|
|
90
|
+
"#kwdf5u88q9g4": "./src/backend/utils/time.ts",
|
|
91
|
+
"#kzmqayr84v3x": "./src/metadata/process.ts",
|
|
92
|
+
"#m4kuwvprq8wl": "./src/types/export.ts",
|
|
93
|
+
"#nal3wuve8edd": "./src/storage/partitions/rewrite.ts",
|
|
94
|
+
"#nmfh3v2le5vp": "./src/utils/runtime.ts",
|
|
95
|
+
"#o3jnvqp377lh": "./src/storage/walk.ts",
|
|
96
|
+
"#o520iruia9te": "./src/core/create_log/runtime.ts",
|
|
97
|
+
"#oceupfj37qp3": "./src/browser/react.ts",
|
|
98
|
+
"#p4vw6ektylr3": "./test/browser_react.spec.ts",
|
|
99
|
+
"#pngx4lcsdjmx": "./src/storage/options.ts",
|
|
100
|
+
"#qkc6be246w9i": "./src/browser/create_log.ts",
|
|
101
|
+
"#qqlp8cyr3105": "./src/storage/partitions/delete.ts",
|
|
102
|
+
"#r7zemzf5h80g": "./tb.code-discipline.ts",
|
|
103
|
+
"#ta83t616a09f": "./test/specs/partition_ops.spec.ts",
|
|
104
|
+
"#tvzweoxg5ahk": "./src/types.ts",
|
|
105
|
+
"#u5wfll4tzofn": "./examples/dummy.ts",
|
|
106
|
+
"#ubetf5s0pfc2": "./src/core/shared.ts",
|
|
107
|
+
"#udhxjfygntkt": "./src/types/partitions.ts",
|
|
108
|
+
"#unnkpg8o07bp": "./src/utils/size.ts",
|
|
109
|
+
"#uobjnphrxi2c": "./src/storage/export.ts",
|
|
110
|
+
"#va6txcqwm0gh": "./src/format/console.ts",
|
|
111
|
+
"#vpn8n9wiu1x0": "./src/backend/utils/normalize.ts",
|
|
112
|
+
"#w1cc3mztq3ng": "./src/storage/write.ts",
|
|
113
|
+
"#wvgdqe7mlqch": "./test/specs/native_loader.spec.ts",
|
|
114
|
+
"#x2qkmwodgsce": "./src/storage/names.ts",
|
|
115
|
+
"#xcylcir2d1qf": "./src/browser/console_transport.ts",
|
|
116
|
+
"#xtaoa1f0kt5w": "./src/core/create_log/finalize.ts",
|
|
117
|
+
"#ycytzc4gr3f7": "./src/utils/values.ts",
|
|
118
|
+
"#yrpchhxv9iak": "./src/storage/query/shared.ts",
|
|
119
|
+
"#zgjmhffod2k1": "./src/storage/query.ts"
|
|
120
|
+
},
|
|
121
|
+
"keywords": [
|
|
122
|
+
"logger",
|
|
123
|
+
"logging",
|
|
124
|
+
"structured-logging",
|
|
125
|
+
"jsonl",
|
|
126
|
+
"backend",
|
|
127
|
+
"browser",
|
|
128
|
+
"frontend",
|
|
129
|
+
"node",
|
|
130
|
+
"bun"
|
|
131
|
+
],
|
|
132
|
+
"license": "AGPL-3.0-only",
|
|
133
|
+
"main": "./dist/index.js",
|
|
134
|
+
"name": "@trebired/logger",
|
|
135
|
+
"packageManager": "bun@1.3.12",
|
|
136
|
+
"peerDependencies": {
|
|
137
|
+
"react": ">=18"
|
|
138
|
+
},
|
|
139
|
+
"peerDependenciesMeta": {
|
|
140
|
+
"react": {
|
|
141
|
+
"optional": true
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"private": false,
|
|
145
|
+
"publishConfig": {
|
|
146
|
+
"access": "public"
|
|
147
|
+
},
|
|
148
|
+
"repository": {
|
|
149
|
+
"type": "git",
|
|
150
|
+
"url": "https://github.com/Trebired/logger"
|
|
151
|
+
},
|
|
58
152
|
"scripts": {
|
|
59
153
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
60
154
|
"build:native": "node ./scripts/build-native.mjs",
|
|
@@ -67,26 +161,7 @@
|
|
|
67
161
|
"typecheck": "tsc --noEmit",
|
|
68
162
|
"verify:pack": "node ./scripts/verify-pack.mjs"
|
|
69
163
|
},
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"peerDependenciesMeta": {
|
|
74
|
-
"react": {
|
|
75
|
-
"optional": true
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"devDependencies": {
|
|
79
|
-
"@types/bun": "^1.3.4",
|
|
80
|
-
"@types/node": "^24.10.1",
|
|
81
|
-
"@types/react": "^19.2.2",
|
|
82
|
-
"@types/react-test-renderer": "^19.1.0",
|
|
83
|
-
"@types/tar-stream": "^3.1.4",
|
|
84
|
-
"react": "^19.2.0",
|
|
85
|
-
"react-test-renderer": "^19.2.0",
|
|
86
|
-
"typescript": "^6.0.2"
|
|
87
|
-
},
|
|
88
|
-
"dependencies": {
|
|
89
|
-
"fflate": "^0.8.3",
|
|
90
|
-
"tar-stream": "^3.2.0"
|
|
91
|
-
}
|
|
164
|
+
"type": "module",
|
|
165
|
+
"types": "./dist/index.d.ts",
|
|
166
|
+
"version": "2.5.2"
|
|
92
167
|
}
|