Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[Full changelog](https://github.com/mozilla/glean.js/compare/v1.0.0...main)

* [#1318](https://github.com/mozilla/glean.js/pull/1318): Expose `ErrorType` through its own entry point.
* [#1271](https://github.com/mozilla/glean.js/pull/1271): BUGFIX: Fix pings validation function when scanning pings database on initialize.
* This bug was preventing pings that contained custom headers from being successfully validated and enqueued on initialize.

Expand Down
4 changes: 4 additions & 0 deletions glean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"type": "module",
"sideEffects": false,
"exports": {
"./error": "./dist/core/error/error_type.js",
"./package.json": "./package.json",
"./private/metrics/*": "./dist/core/metrics/types/*.js",
"./private/ping": "./dist/core/pings/ping_type.js",
Expand Down Expand Up @@ -40,6 +41,9 @@
],
"testing": [
"./dist/types/core/testing/index.d.ts"
],
"error": [
"./dist/types/core/error/error_type.d.ts"
]
}
},
Expand Down
1 change: 0 additions & 1 deletion glean/src/entry/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
import platform from "../platform/node/index.js";
import base from "./base.js";

export { ErrorType } from "../core/error/error_type.js";
export { default as Uploader, UploadResult, UploadResultStatus } from "../core/upload/uploader.js";
export default base(platform);
1 change: 0 additions & 1 deletion glean/src/entry/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
import platform from "../platform/browser/web/index.js";
import base from "./base.js";

export { ErrorType } from "../core/error/error_type.js";
export { default as Uploader, UploadResult, UploadResultStatus } from "../core/upload/uploader.js";
export default base(platform);
1 change: 0 additions & 1 deletion glean/src/entry/webext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
import platform from "../platform/browser/webext/index.js";
import base from "./base.js";

export { ErrorType } from "../core/error/error_type.js";
export { default as Uploader, UploadResult, UploadResultStatus } from "../core/upload/uploader.js";
export default base(platform);
2 changes: 1 addition & 1 deletion samples/browser/webext/tests/unit/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import { strict as assert } from "assert";
import { ErrorType } from "@mozilla/glean/webext";
import { ErrorType } from "@mozilla/glean/error";
import { testResetGlean } from "@mozilla/glean/testing";

import * as sample from "../../src/generated/sample.js";
Expand Down
2 changes: 1 addition & 1 deletion samples/node/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import { strict as assert } from "assert";
import { ErrorType } from "@mozilla/glean/node";
import { ErrorType } from "@mozilla/glean/error";
import { testResetGlean } from "@mozilla/glean/testing";

import main from "./main.js";
Expand Down