Skip to content

Commit cecfb8c

Browse files
authored
Merge pull request #1749 from mozilla/release-v2.0.0
2 parents 02d864f + 20d682b commit cecfb8c

File tree

10 files changed

+36
-26
lines changed

10 files changed

+36
-26
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
pip install -r requirements.txt
180180
glean_parser translate src/App/metrics.yaml src/App/pings.yaml \
181181
-f javascript -o src/App/generated \
182-
--option platform=qt --option version="1.4"
182+
--option platform=qt --option version="2.0"
183183
- run:
184184
name: Run Qt sample tests
185185
command: |

.dictionary

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,5 @@ webpack
7878
async
7979
queueing
8080
LocalStorage
81+
IndexedDB
8182
ssr

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
# Unreleased changes
22

3-
[Full changelog](https://github.com/mozilla/glean.js/compare/v1.4.0...main)
3+
[Full changelog](https://github.com/mozilla/glean.js/compare/v2.0.0...main)
44

5-
* [#1733](https://github.com/mozilla/glean.js/pull/1733): Add SSR support for Glean.js
5+
# v2.0.0 (2023-08-03)
6+
7+
[Full changelog](https://github.com/mozilla/glean.js/compare/v1.4.0...v2.0.0)
8+
9+
**Important**
10+
11+
This version of Glean.js migrates the browser implementation from using IndexedDB to using LocalStorage. The storage change means that all Glean.js actions run synchronously.
12+
13+
* [#1748](https://github.com/mozilla/glean.js/pull/1748): Update glean_parser version to the latest.
14+
* [#1733](https://github.com/mozilla/glean.js/pull/1733): Add SSR support for Glean.js.
615
* [#1728](https://github.com/mozilla/glean.js/pull/1728): Migrate client_id and first_run_date.
716
* [#1695](https://github.com/mozilla/glean.js/pull/1695): Update Glean.js web to use LocalStorage.
817

docs/reference/sizes.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ To check out a comprehensive list of which metrics are collected by Glean and th
1212
<!-- ! -->
1313
|| Size |
1414
|--|--|
15-
|web|**56 KB**|
16-
|webext|**55 KB**|
17-
|node|**55 KB**|
18-
|QML|**91 KB**|
15+
|web|**60 KB**|
16+
|webext|**61 KB**|
17+
|node|**61 KB**|
18+
|QML|**104 KB**|
1919
<!-- ! -->
2020

2121
> **Note**: The QML bundle contains all the metric types and is not distributed through the
@@ -32,21 +32,21 @@ to external consumers.
3232
<!-- ! -->
3333
|Metric Type| web|webext|node|
3434
|--|--|--|--|
35-
|boolean|1.6 KB |1.6 KB |1.6 KB |
35+
|boolean|1.8 KB |1.8 KB |1.8 KB |
3636
|counter|998 bytes |998 bytes |998 bytes |
37-
|custom_distribution|5.4 KB |5.4 KB |5.4 KB |
37+
|custom_distribution|5.8 KB |5.8 KB |5.8 KB |
3838
|datetime|1.1 KB |1.1 KB |1.1 KB |
3939
|event|1008 bytes |1008 bytes |1008 bytes |
40-
|labeled|361 bytes |361 bytes |361 bytes |
41-
|memory_distribution|5.0 KB |5.0 KB |5.0 KB |
42-
|quantity|1.7 KB |1.7 KB |1.7 KB |
40+
|labeled|355 bytes |356 bytes |355 bytes |
41+
|memory_distribution|6.1 KB |6.1 KB |6.1 KB |
42+
|quantity|2.1 KB |2.1 KB |2.1 KB |
4343
|string|998 bytes |998 bytes |998 bytes |
44-
|text|1.5 KB |1.5 KB |1.5 KB |
45-
|timespan|3.9 KB |3.9 KB |3.9 KB |
46-
|timing_distribution|6.6 KB |6.6 KB |6.6 KB |
47-
|rate|2.3 KB |2.3 KB |2.3 KB |
44+
|text|1.8 KB |1.8 KB |1.8 KB |
45+
|timespan|5.3 KB |5.3 KB |5.3 KB |
46+
|timing_distribution|8.7 KB |8.7 KB |8.7 KB |
47+
|rate|2.5 KB |2.5 KB |2.5 KB |
4848
|uuid|1.0 KB |1.0 KB |1.0 KB |
49-
|url|2.0 KB |2.0 KB |2.0 KB |
49+
|url|2.2 KB |2.2 KB |2.2 KB |
5050
<!-- ! -->
5151

5252
## Plugins

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": "1.4.0",
3+
"version": "2.0.0",
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 = "1.4.0";
11+
export const GLEAN_VERSION = "2.0.0";
1212

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

samples/qt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pip3 install -r requirements.txt # Install glean_parser
3737
3838
```bash
3939
glean_parser translate src/App/metrics.yaml src/App/pings.yaml -f javascript -o src/App/generated \
40-
--option platform=qt --option version="1.4"
40+
--option platform=qt --option version="2.0"
4141
```
4242

4343
5. Build the app:

samples/qt/src/App/App.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import QtQuick 2.0
66
import QtQuick.Controls 2.0
77

8-
import org.mozilla.Glean 1.4
9-
import generated 1.4
8+
import org.mozilla.Glean 2.0
9+
import generated 2.0
1010

1111
Rectangle {
1212
id: screen

samples/qt/src/Tests/tst_maintests.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import QtQuick 2.0
22
import QtTest 1.0
33

4-
import org.mozilla.Glean 1.4
5-
import generated 1.4
4+
import org.mozilla.Glean 2.0
5+
import generated 2.0
66

77
import App 1.0
88

0 commit comments

Comments
 (0)