Skip to content

Commit dbdc78e

Browse files
committed
Merge branch 'release-v2.0.3' into release
2 parents b9e01ea + 472399d commit dbdc78e

File tree

5 files changed

+28
-5
lines changed

5 files changed

+28
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Unreleased changes
22

3-
[Full changelog](https://github.com/mozilla/glean.js/compare/v2.0.2...main)
3+
[Full changelog](https://github.com/mozilla/glean.js/compare/v2.0.3...main)
4+
5+
# v2.0.3 (2023-09-27)
6+
7+
[Full changelog](https://github.com/mozilla/glean.js/compare/v2.0.2...v2.0.3)
8+
9+
* [#1770](https://github.com/mozilla/glean.js/pull/1770): Allow debugging in browser console via `window.Glean`.
410

511
# v2.0.2 (2023-09-14)
612

glean/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glean/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mozilla/glean",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "An implementation of the Glean SDK, a modern cross-platform telemetry client, for JavaScript environments.",
55
"type": "module",
66
"sideEffects": false,

glean/src/core/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const GLEAN_SCHEMA_VERSION = 1;
88
//
99
// PACKAGE_VERSION is defined as a global by webpack,
1010
// we need a default here for testing when the app is not build with webpack.
11-
export const GLEAN_VERSION = "2.0.2";
11+
export const GLEAN_VERSION = "2.0.3";
1212

1313
// The name of a "ping" that will include Glean ping_info metrics,
1414
// such as ping sequence numbers.

glean/src/core/glean/sync.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,4 +434,21 @@ namespace Glean {
434434
}
435435
}
436436

437+
// Declare global variables for debugging in the browser.
438+
declare global {
439+
interface Window {
440+
Glean: {
441+
setLogPings: (flag: boolean) => void;
442+
setDebugViewTag: (value: string) => void;
443+
setSourceTags: (value: string[]) => void;
444+
}
445+
}
446+
}
447+
448+
window.Glean = {
449+
setLogPings: Glean.setLogPings,
450+
setDebugViewTag: Glean.setDebugViewTag,
451+
setSourceTags: Glean.setSourceTags
452+
};
453+
437454
export default Glean;

0 commit comments

Comments
 (0)