@trebired/logger 2.5.6 → 2.5.11

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