@vielzeug/rune 2.0.0 → 2.1.0

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/package.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "@vielzeug/rune",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Structured logging — scoped loggers, pluggable transports, log levels, and remote log draining",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/helmuthdu/vielzeug",
8
+ "directory": "packages/rune"
9
+ },
5
10
  "type": "module",
11
+ "engines": {
12
+ "node": ">=22"
13
+ },
6
14
  "files": [
7
15
  "dist"
8
16
  ],
@@ -11,32 +19,29 @@
11
19
  "types": "dist/index.d.ts",
12
20
  "exports": {
13
21
  ".": {
14
- "types": "./dist/index.d.ts",
15
22
  "import": "./dist/index.js",
16
- "require": "./dist/index.cjs"
23
+ "require": "./dist/index.cjs",
24
+ "types": "./dist/index.d.ts"
17
25
  }
18
26
  },
27
+ "publishConfig": {
28
+ "access": "public",
29
+ "registry": "https://registry.npmjs.org/"
30
+ },
19
31
  "scripts": {
20
32
  "build": "vite build && pnpm run build:bundle && pnpm run build:types",
33
+ "build:bundle": "vite build --config vite.bundle.config.ts",
21
34
  "build:types": "tsc -p tsconfig.declarations.json",
22
- "fix": "eslint --fix src",
23
- "lint": "eslint src",
35
+ "fix": "biome check --write src",
36
+ "lint": "biome ci src",
24
37
  "prepublishOnly": "pnpm run build",
25
38
  "preview": "vite preview",
26
- "test": "vitest",
27
- "build:bundle": "vite build --config vite.bundle.config.ts"
28
- },
29
- "publishConfig": {
30
- "access": "public",
31
- "registry": "https://registry.npmjs.org/"
32
- },
33
- "engines": {
34
- "node": ">=22"
39
+ "test": "vitest"
35
40
  },
36
41
  "devDependencies": {
37
- "@types/node": "^26.1.2",
42
+ "@types/node": "^26.2.0",
38
43
  "typescript": "^6.0.3",
39
- "vite": "^8.2.0",
44
+ "vite": "^8.2.1",
40
45
  "vitest": "^4.1.10"
41
46
  }
42
47
  }
package/dist/errors.cjs DELETED
@@ -1,2 +0,0 @@
1
- var e=class e extends Error{constructor(e,t){super(e,t),this.name=new.target.name,Object.setPrototypeOf(this,new.target.prototype)}static is(t){return t instanceof e}};exports.RuneError=e;
2
- //# sourceMappingURL=errors.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.cjs","names":[],"sources":["../src/errors.ts"],"sourcesContent":["/** Base class for all rune errors. Use `instanceof RuneError` to catch any rune-originated error. */\nexport class RuneError extends Error {\n constructor(message: string, opts?: ErrorOptions) {\n super(message, opts);\n this.name = new.target.name;\n Object.setPrototypeOf(this, new.target.prototype);\n }\n\n static is(err: unknown): err is RuneError {\n return err instanceof RuneError;\n }\n}\n"],"mappings":"AACA,IAAa,EAAb,MAAa,UAAkB,KAAM,CACnC,YAAY,EAAiB,EAAqB,CAChD,MAAM,EAAS,CAAI,EACnB,KAAK,KAAO,WAAW,KACvB,OAAO,eAAe,KAAM,WAAW,SAAS,CAClD,CAEA,OAAO,GAAG,EAAgC,CACxC,OAAO,aAAe,CACxB,CACF"}
package/dist/errors.d.ts DELETED
@@ -1,6 +0,0 @@
1
- /** Base class for all rune errors. Use `instanceof RuneError` to catch any rune-originated error. */
2
- export declare class RuneError extends Error {
3
- constructor(message: string, opts?: ErrorOptions);
4
- static is(err: unknown): err is RuneError;
5
- }
6
- //# sourceMappingURL=errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,qBAAa,SAAU,SAAQ,KAAK;gBACtB,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY;IAMhD,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS;CAG1C"}
package/dist/errors.js DELETED
@@ -1,13 +0,0 @@
1
- //#region src/errors.ts
2
- var e = class e extends Error {
3
- constructor(e, t) {
4
- super(e, t), this.name = new.target.name, Object.setPrototypeOf(this, new.target.prototype);
5
- }
6
- static is(t) {
7
- return t instanceof e;
8
- }
9
- };
10
- //#endregion
11
- export { e as RuneError };
12
-
13
- //# sourceMappingURL=errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.js","names":[],"sources":["../src/errors.ts"],"sourcesContent":["/** Base class for all rune errors. Use `instanceof RuneError` to catch any rune-originated error. */\nexport class RuneError extends Error {\n constructor(message: string, opts?: ErrorOptions) {\n super(message, opts);\n this.name = new.target.name;\n Object.setPrototypeOf(this, new.target.prototype);\n }\n\n static is(err: unknown): err is RuneError {\n return err instanceof RuneError;\n }\n}\n"],"mappings":";AACA,IAAa,IAAb,MAAa,UAAkB,MAAM;CACnC,YAAY,GAAiB,GAAqB;EAGhD,AAFA,MAAM,GAAS,CAAI,GACnB,KAAK,OAAO,WAAW,MACvB,OAAO,eAAe,MAAM,WAAW,SAAS;CAClD;CAEA,OAAO,GAAG,GAAgC;EACxC,OAAO,aAAe;CACxB;AACF"}