Skip to content

Commit da95302

Browse files
committed
Merge branch 'release-v0.8.1' into release
2 parents 9914c83 + 2301497 commit da95302

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

CHANGELOG.md

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

3-
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.8.0...main)
3+
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.8.1...main)
4+
5+
# v0.8.1 (2021-04-14)
6+
7+
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.8.0...v0.8.1)
8+
9+
* [#206](https://github.com/mozilla/glean.js/pull/206): BUGFIX: Fix ping URL path.
10+
* Application ID was being reporting as `undefined`.
411

512
# v0.8.0 (2021-04-13)
613

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": "0.8.0",
3+
"version": "0.8.1",
44
"description": "An implementation of the Glean SDK, a modern cross-platform telemetry client, for Javascript environments.",
55
"type": "module",
66
"exports": {

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

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

glean/src/core/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class Context {
7979
Context.instance._pingsDatabase = db;
8080
}
8181

82-
static get applicatinId(): string {
82+
static get applicationId(): string {
8383
return Context.instance._applicationId;
8484
}
8585

glean/tests/core/upload/index.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,12 @@ describe("PingUploader", function() {
207207
await waitForGleanUploader();
208208

209209
const url = postSpy.firstCall.args[0].split("/");
210+
const appId = url[url.length - 4];
210211
const documentId = url[url.length - 1];
211212
const headers = postSpy.firstCall.args[2] || {};
212213

213214
assert.strictEqual(documentId, expectedDocumentId);
215+
assert.strictEqual(appId, Context.applicationId);
214216

215217
assert.ok("Date" in headers);
216218
assert.ok("User-Agent" in headers);

0 commit comments

Comments
 (0)