Skip to content

Commit adc8cf0

Browse files
rootroot
authored andcommitted
Merge branch 'release-v5.0.4' into release
2 parents 353d20f + 23102af commit adc8cf0

File tree

8 files changed

+35
-201
lines changed

8 files changed

+35
-201
lines changed

ARCHITECTURE.md

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,19 @@ and the SDK will manage its storage so that data does not remain in storage afte
4040

4141
The Glean SDK tries to do all of this is the least disruptive way possible to users.
4242

43-
### async (Web Extensions)
43+
### Browser
44+
45+
All of the SDKs tasks are executed synchronously, immediately as they are called. Errors will be caught without ever crashing the application.
46+
47+
### Web Extensions
4448

4549
All of the SDKs tasks are queued and executed asynchronously. The APIs exposed by the Glean SDK will only do
4650
the en-queuing of tasks, a quick synchronous operation. Internally, the Glean SDK will handle the
4751
queued tasks asynchronously, catching any errors thrown along the way so that Glean never
4852
crashes a users application.
4953

50-
### sync (Browser)
51-
52-
All of the SDKs tasks are executed synchronously, immediately as they are called. The APIs exposed by Glean
53-
are the same as the async implementation, but without queueing of any tasks. Errors will be caught without
54-
ever crashing the application.
54+
The web extension SDK is currently not being developed. If you want to use the SDK in your web extension
55+
please reference the [Glean.js user docs](https://mozilla.github.io/glean.js/getting_started/platforms/#deprecated-platforms).
5556

5657
## Code Map
5758

@@ -88,9 +89,6 @@ created to mitigate that issue. This file houses the `Context` structure, a sing
8889
setters and getters to all of Glean's internal state. This file should avoid any imports that are
8990
not `import type`.
9091

91-
`dispatcher.ts` is where Glean's dispatcher implementation lives. The dispatcher is the structure
92-
that manages Glean's task queue.
93-
9492
`metrics/types` is where all of the specific metric type implementations are. Each metric type
9593
should be implemented in a single file and no other file types should be added to this folder,
9694
because the files under this folder are exposed through the `@mozilla/glean/private/metrics/*`
@@ -132,15 +130,3 @@ exposed through the `@mozilla/glean/plugins/*` entry point.
132130

133131
This file is what gets executed when a user that has installed Glean through npm invokes the `glean`
134132
command. It serves as a wrapper to call `glean_parser` commands more easily from JavaScript projects.
135-
136-
### `async`/`sync` files
137-
138-
There are certain places where we need different implementations for internal services based on the
139-
platform. In these instances, the service will have its own folder with the following folder structure:
140-
141-
```
142-
├── service/
143-
├──── async.ts
144-
├──── shared.ts # Shared base class defining all available methods AND any reusable helper functions
145-
└──── sync.ts
146-
```

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/v5.0.3...main)
3+
[Full changelog](https://github.com/mozilla/glean.js/compare/v5.0.4...main)
4+
5+
# v5.0.4 (2025-04-02)
6+
7+
* [#1977](https://github.com/mozilla/glean.js/pull/1977): Add try-catch around window.sessionStorage access to prevent uncaught error upon `import`.
8+
9+
[Full changelog](https://github.com/mozilla/glean.js/compare/v5.0.3...v5.0.4)
410

511
# v5.0.3 (2024-08-02)
612

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Before you dive into technical details, take a moment to read our
1010
Any form of communication from chat rooms and mailing lists to code comments
1111
is expected to follow this code of conduct, so that all can enjoy working on Glean.js.
1212

13-
Glean.js' developer document lives in the [`docs/`](https://github.com/mozilla/glean.js/tree/main/docs/index.md)
14-
folder in this repository and Glean.js' user documentation lives in [The Glean Book](https://mozilla.github.io/glean/book/index.html).
13+
Glean.js' developer document lives in the [`docs/`](https://github.com/mozilla/glean.js/tree/main/docs/README.md)
14+
folder in this repository and Glean.js' user documentation can be found at [mozilla.github.io/glean.js/](https://mozilla.github.io/glean.js/).
1515

1616
Here's the [guide](https://github.com/mozilla/glean.js/blob/main/docs/guides/getting_started.md) to get you started!
1717

docs/reference/metrics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- AUTOGENERATED BY glean_parser v14.5.0. DO NOT EDIT. -->
1+
<!-- AUTOGENERATED BY glean_parser v14.5.2. DO NOT EDIT. -->
22

33
# Metrics
44

@@ -107,5 +107,5 @@ In addition to those built-in metrics, the following metrics are added to the pi
107107

108108
Data categories are [defined here](https://wiki.mozilla.org/Firefox/Data_Collection).
109109

110-
<!-- AUTOGENERATED BY glean_parser v14.5.0. DO NOT EDIT. -->
110+
<!-- AUTOGENERATED BY glean_parser v14.5.2. DO NOT EDIT. -->
111111

glean/package-lock.json

Lines changed: 2 additions & 168 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mozilla/glean",
3-
"version": "5.0.3",
3+
"version": "5.0.4",
44
"description": "An implementation of the Glean SDK, a modern cross-platform telemetry client, for JavaScript environments.",
55
"type": "module",
66
"sideEffects": false,
@@ -117,7 +117,6 @@
117117
"ts-loader": "^9.0.1",
118118
"ts-mocha": "^10.0.0",
119119
"ts-node": "^10.8.0",
120-
"typedoc": "^0.25.1",
121120
"typescript": "^4.3.5",
122121
"web-ext-types": "^3.2.1",
123122
"webpack": "^5.42.1",

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 = "5.0.3";
11+
export const GLEAN_VERSION = "5.0.4";
1212

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

0 commit comments

Comments
 (0)