Skip to content

Commit 4ed10c7

Browse files
author
brizental
committed
Merge branch 'release-v0.4.0' into release
2 parents b4e090b + 1e88141 commit 4ed10c7

29 files changed

+1349
-523
lines changed

CHANGELOG.md

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

3-
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.3.0...main)
3+
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.4.0...main)
4+
5+
# v0.4.0 (2021-03-10)
6+
7+
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.3.0...v0.4.0)
8+
9+
* [#92](https://github.com/mozilla/glean.js/pull/92): Remove `web-ext-types` from `peerDependencies` list.
10+
* [#98](https://github.com/mozilla/glean.js/pull/98): Add external APIs for setting the Debug View Tag and Source Tags.
11+
* [#99](https://github.com/mozilla/glean.js/pull/99): BUGFIX: Add a default ping value in the testing APIs.
12+
413
# v0.3.0 (2021-02-24)
514

615
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.2.0...v0.3.0)

bin/prepare-release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ if [ "$DOIT" = y ]; then
9999
# Unreleased changes
100100
101101
[Full changelog](https://github.com/mozilla/glean.js/compare/v${NEW_VERSION}...main)
102+
102103
${CHANGELOG}
103104
EOL
104105
fi

docs/troubleshooting.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Troubleshooting
2+
3+
## "Cannot find module '@mozilla/glean'"
4+
5+
Glean.js does not have a [`main`](https://nodejs.org/api/packages.html#packages_main_entry_point_export) package entry point. Instead it relies on a series of entry points depending on the platform you are targeting.
6+
7+
In order to import Glean use `import Glean from '@mozilla/glean/<your-platform>`.
8+
9+
> **Note**: Currently, the only supported platform is `webext`. Therefore the only valid import is `@mozilla/glean/webext`.
10+
11+
## "Module not found: Error: Can't resolve '@mozilla/glean/webext' in '...'"
12+
13+
Glean.js relies on Node.js' [subpath exports](https://nodejs.org/api/packages.html#packages_subpath_exports) feature to define multiple package entry points.
14+
15+
Please make sure that you are using a supported Node.js runtime (>= v12.7.0) and also make sure
16+
the tools you are using support this Node.js feature.
17+
18+
> **Note**: If using Webpack, make sure you have a version >= 5.0.0 (see v5.0.0 [release notes](https://webpack.js.org/blog/2020-10-10-webpack-5-release/#major-changes-new-nodejs-ecosystem-features) for details).

0 commit comments

Comments
 (0)