@statoss/sdk 0.4.0 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## 0.4.0 (unreleased)
3
+ ## 0.5.0 (14 Nov 2026)
4
+
5
+ - Two more colours a level can take: `ink`, which the server now gives
6
+ info by default, and `ash`, which it gives debug and trace.
7
+
8
+ ## 0.4.0 (11 Oct 2026)
4
9
 
5
10
  - Logs: `init({ logs: true })` sends the lines of `logger` as Sentry's log
6
11
  items. `logger.trace`, `debug`, `info`, `warn`, `error` and `fatal` take a
package/README.md CHANGED
@@ -331,7 +331,7 @@ statoss.captureException(error, { level: "payment-faild" });
331
331
  `{ subject: "logger", value: "payments", category: "billing" }`. They name
332
332
  the schema's own levels and categories.
333
333
  - Colours: `crimson`, `red`, `orange`, `amber`, `yellow`, `green`, `aqua`,
334
- `teal`, `blue`, `violet`, `indigo`, `magenta`, `plum` and `grey`.
334
+ `teal`, `blue`, `violet`, `indigo`, `magenta`, `plum`, `grey`, `ink` and `ash`.
335
335
  - Names: a level is 1 to 32 characters and a category 1 to 64, of lowercase
336
336
  letters, digits, dots, dashes and underscores. A field is any tag key not
337
337
  starting `statoss.`.
@@ -5,7 +5,7 @@ import type { CaptureContext, Event, Level, SentryLevel } from "./types.js";
5
5
  export declare const LIKES: readonly ["fatal", "error", "warning", "info", "debug", "trace"];
6
6
  export type Like = (typeof LIKES)[number];
7
7
  /** The colours a level or a category takes, by name. */
8
- export declare const SCHEMA_COLORS: readonly ["crimson", "red", "orange", "amber", "yellow", "green", "aqua", "teal", "blue", "violet", "indigo", "magenta", "plum", "grey"];
8
+ export declare const SCHEMA_COLORS: readonly ["crimson", "red", "orange", "amber", "yellow", "green", "aqua", "teal", "blue", "violet", "indigo", "magenta", "plum", "grey", "ink", "ash"];
9
9
  export type SchemaColor = (typeof SCHEMA_COLORS)[number];
10
10
  /** What a rule tests: a tag by key, the logger, or one of the event's own fields. */
11
11
  export declare const RULE_SUBJECTS: readonly ["tag", "logger", "exception", "culprit", "title", "message"];
@@ -34,6 +34,8 @@ exports.SCHEMA_COLORS = [
34
34
  "magenta",
35
35
  "plum",
36
36
  "grey",
37
+ "ink",
38
+ "ash",
37
39
  ];
38
40
  /** What a rule tests: a tag by key, the logger, or one of the event's own fields. */
39
41
  exports.RULE_SUBJECTS = [
@@ -1,3 +1,3 @@
1
1
  export declare const SDK_NAME = "statoss.javascript";
2
- export declare const SDK_VERSION = "0.4.0";
2
+ export declare const SDK_VERSION = "0.5.0";
3
3
  export declare const SDK_PACKAGE = "npm:@statoss/sdk";
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_PACKAGE = exports.SDK_VERSION = exports.SDK_NAME = void 0;
4
4
  exports.SDK_NAME = "statoss.javascript";
5
5
  // Kept equal to package.json by a test.
6
- exports.SDK_VERSION = "0.4.0";
6
+ exports.SDK_VERSION = "0.5.0";
7
7
  exports.SDK_PACKAGE = "npm:@statoss/sdk";
@@ -5,7 +5,7 @@ import type { CaptureContext, Event, Level, SentryLevel } from "./types.js";
5
5
  export declare const LIKES: readonly ["fatal", "error", "warning", "info", "debug", "trace"];
6
6
  export type Like = (typeof LIKES)[number];
7
7
  /** The colours a level or a category takes, by name. */
8
- export declare const SCHEMA_COLORS: readonly ["crimson", "red", "orange", "amber", "yellow", "green", "aqua", "teal", "blue", "violet", "indigo", "magenta", "plum", "grey"];
8
+ export declare const SCHEMA_COLORS: readonly ["crimson", "red", "orange", "amber", "yellow", "green", "aqua", "teal", "blue", "violet", "indigo", "magenta", "plum", "grey", "ink", "ash"];
9
9
  export type SchemaColor = (typeof SCHEMA_COLORS)[number];
10
10
  /** What a rule tests: a tag by key, the logger, or one of the event's own fields. */
11
11
  export declare const RULE_SUBJECTS: readonly ["tag", "logger", "exception", "culprit", "title", "message"];
@@ -28,6 +28,8 @@ export const SCHEMA_COLORS = [
28
28
  "magenta",
29
29
  "plum",
30
30
  "grey",
31
+ "ink",
32
+ "ash",
31
33
  ];
32
34
  /** What a rule tests: a tag by key, the logger, or one of the event's own fields. */
33
35
  export const RULE_SUBJECTS = [
@@ -1,3 +1,3 @@
1
1
  export declare const SDK_NAME = "statoss.javascript";
2
- export declare const SDK_VERSION = "0.4.0";
2
+ export declare const SDK_VERSION = "0.5.0";
3
3
  export declare const SDK_PACKAGE = "npm:@statoss/sdk";
@@ -1,4 +1,4 @@
1
1
  export const SDK_NAME = "statoss.javascript";
2
2
  // Kept equal to package.json by a test.
3
- export const SDK_VERSION = "0.4.0";
3
+ export const SDK_VERSION = "0.5.0";
4
4
  export const SDK_PACKAGE = "npm:@statoss/sdk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statoss/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Error tracking and logs for StatOSS: browsers, Node, Bun, Deno, Cloudflare Workers and Vercel Edge. Speaks Sentry's protocol.",
5
5
  "license": "MIT",
6
6
  "author": "StatOSS",