Releases: mozilla/glean.js
Releases · mozilla/glean.js
v2.0.2
- #1768: Add support for
GLEAN_PYTHONandGLEAN_PIPenvironment variables. - #1755: Add sync check to
setfunction for the URL metric. - #1766: Update default
maxEventscount to 1. This means an events ping will be sent after each recorded event unless themaxEventscount is explicitly set to a larger number.
glean_parser: 8.1.1
v2.0.1
- #1751: Add a migration flag to initialize. If not explicitly set in the
configobject the migration from IndexedDB to LocalStorage will not occur. The only projects that should ever set this flag are those that have used Glean.js in production with a version <v2.0.0 and have upgraded.
glean_parser: 8.1.1
v2.0.0
Important
This version of Glean.js migrates the browser implementation from using IndexedDB to using LocalStorage. The storage change means that all Glean.js internal actions run synchronously.
- #1748: Update glean_parser version to the latest.
- #1733: Add SSR support for Glean.js.
- #1728: Migrate client_id and first_run_date.
- #1695: Update Glean.js web to use LocalStorage.
glean_parser: 8.1.1
v1.4.0
v1.3.0 (2022-10-18)
v1.2.0 (2022-09-21)
- #1513: Bump URL metric character limit to 8k to support longer URLs. URLs that are too long now are truncated to
URL_MAX_LENGTHand still recorded along with an Overflow error. - #1500: BUGFIX: Update how we invoke CLI python script to fix
npm run gleanbehavior on Windows. - #1457: Update
ts-nodeto 10.8.0 to resolve ESM issues when running tests inside ofwebextsample project. - #1452: Remove
glean.restartedtrailing events from events list. - #1450: Update
ts-nodeto 10.8.0 to resolve ESM issues when running tests. - #1449: BUGFIX: Add missing quotes to
prepare-releasescript to fix issues with version numbers in Qt sample README & circle ci config. - #1449: Update Qt sample project docs to include note about problems with different version numbers of Qt commands.
glean_parser: v5.1.0
v1.1.0 (2022-07-18)
- #1318: Expose
ErrorTypethrough its own entry point. - #1271: BUGFIX: Fix pings validation function when scanning pings database on initialize.
- This bug was preventing pings that contained custom headers from being successfully validated and enqueued on initialize.
- #1335: BUGFIX: Fix uploading gzip-compressed pings in Node.
- #1415: BUGFIX: Publish the TS type information for the
webplatform.
glean_parser: v5.1.0
v1.0.0 (2022-03-17)
- #1154: BUGFIX: Implemented initialize and set_upload_enabled reasons for deletion-request ping.
- #1233: Add optional
buildDateargument toinitializeconfiguration. The build date can be generated by glean_parser. - #1233: Update glean_parser to version 5.1.0.
- #1217: Record
InvalidTypeerror when incorrectly type values are passed to metric recording functions. - #1267: Implement the 'events' ping.
glean_parser: v5.1.0
v0.32.0 (2022-03-01)
- #1220: Refactor virtual environment behavior to support virtual environments that aren't in the project root.
- This means it's possible to run Glean with a virtual environment created by
virtualenvorpyenv-virtualenvwithout causing a Glean-specific.venvdirectory to be created in a project that is using Glean.
- This means it's possible to run Glean with a virtual environment created by
- #1130: BUGFIX: Guarantee event timestamps
cannot be negative numbers.- Timestamps were observed to be negative in a few occurrences, for platforms that do not provide the
performance.nowAPI, namely QML, and in which we fallback to theDate.nowAPI. - If event timestamps are negative pings are rejected by the pipeline.
- Timestamps were observed to be negative in a few occurrences, for platforms that do not provide the
- #1132: Retry ping request on network error with
keepalive: false. This is sometimes an issue on Chrome browsers below v81. - #1170: Update glean_parser to version 5.0.0.
- #1178: Enable running the
gleancommand offline.- When offline Glean will not attempt to install glean_parser.
- #1178: Enable running the
gleancommand with as many or as little arguments as wanted.- Previously the command could only be run with 3 commands, even though all glean_parser commands would have been valid commands for the
gleanCLI.
- Previously the command could only be run with 3 commands, even though all glean_parser commands would have been valid commands for the
- #1210: Show comprehensive error message when missing
storagepermissions for Glean on web extensions. - #1223: Add
--glean-parser-versioncommand to CLI to allow users to retrieve the glean_parser version without installing glean_parser. - #1228: BUGFIX: Apply debug features before sending pings at initialize.
glean_parser: v5.0.1
v0.31.0 (2022-01-25)
- #1065: Delete minimal amount of data when invalid data is found while collecting ping.
- Previous behaviour was to delete the whole ping when invalid data was found on the database,
new behaviour only deletes the actually invalid data and leave the rest of the ping intact.
- Previous behaviour was to delete the whole ping when invalid data was found on the database,
- #1065: Only import metric types into the library when they are used either by the user or Glean itself.
- Previously the code required to deserialize metric data from the database was always imported by the library even if the metric type was never used by the client. This effort will decrease the size of the Glean.js bundles that don't import all the metric types.
- #1046: Remove legacy
X-Client-TypeX-Client-Versionheaders from Glean pings. - #1071: BREAKING CHANGE: Move the
testResetGleanAPI from the Glean singleton and into it's own entry point@mozilla/glean/testing.- In order to use this API one must import it through
import { testResetGlean } from "@mozilla/glean/testing"instead of using it from the Glean singleton directly. - This lower the size of the Glean library, because testing functionality is not imported unless in a testing environment.
- This change does not apply to QML. In this environment the API remains the same.
- In order to use this API one must import it through
glean_parser: v4.1.1