@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 +6 -1
- package/README.md +1 -1
- package/dist/cjs/schema.d.ts +1 -1
- package/dist/cjs/schema.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/schema.d.ts +1 -1
- package/dist/esm/schema.js +2 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
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 `
|
|
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.`.
|
package/dist/cjs/schema.d.ts
CHANGED
|
@@ -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"];
|
package/dist/cjs/schema.js
CHANGED
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -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.
|
|
6
|
+
exports.SDK_VERSION = "0.5.0";
|
|
7
7
|
exports.SDK_PACKAGE = "npm:@statoss/sdk";
|
package/dist/esm/schema.d.ts
CHANGED
|
@@ -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"];
|
package/dist/esm/schema.js
CHANGED
package/dist/esm/version.d.ts
CHANGED
package/dist/esm/version.js
CHANGED
package/package.json
CHANGED