@@ -16,7 +16,7 @@ An end-to-end data collection platform developed by Mozilla and primarily target
1616Glean provides multiple client SDKs for different programming languages and platforms.
1717One of the aspects that guide Glean SDK development is cross-platform consistency and the Glean
1818JavaScript SDK is no exception to that. It is built to work on multiple JavaScript platforms --
19- websites, web extensions, Node.js and QML as of the time of writing -- and to be easily extendable
19+ websites, Node.js and QML as of the time of writing -- and to be easily extendable
2020to other platforms as well.
2121
2222The Glean JavaScript SDK is the latest addition to the family of Glean SDKs. The other Glean SDKs,
@@ -40,10 +40,10 @@ storage. Each metric can have different [lifetimes](https://mozilla.github.io/gl
4040and the SDK will manage its storage so that data does not remain in storage after it's lifetime is expired.
4141
4242The Glean SDK tries to do all of this is the least disruptive way possible to users. There are two separate
43- implementations for the SDK based on the platform: async (node, web extensions ) and sync (browser). The implementation
43+ implementations for the SDK based on the platform: async (node) and sync (browser). The implementation
4444is set inside of Glean itself and is not configurable by the user.
4545
46- ### async (Web Extensions, Node)
46+ ### async (Node)
4747
4848All of the SDKs tasks are queued and executed asynchronously. The APIs exposed by the Glean SDK will only do
4949the en-queuing of tasks, a quick synchronous operation. Internally, the Glean SDK will handle the
@@ -104,7 +104,7 @@ To see all the exposed entry points, check out Glean.js' `package.json` file.
104104### ` entry/ `
105105
106106The ` entry/ ` folder contains the main entry points for the Glean.js package per platform.
107- For example, when a user does ` import Glean from @mozilla/glean/webext ` it's the ` entry/webext .ts `
107+ For example, when a user does ` import Glean from @mozilla/glean/web ` it's the ` entry/web .ts `
108108file that they are getting and not ` core/glean.ts ` .
109109
110110The main difference between each platform's file is that a different ` Platform ` implementation is
@@ -123,7 +123,6 @@ It also makes testing easier, because the exact same suite of tests can be run f
123123
124124The storage module varies for each platform. The storage mechanism used by each platform is as follows:
125125- ` web ` - [ ` localStorage ` ] ( https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage )
126- - ` webext ` - [ ` storage ` ] ( https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage )
127126- ` Node ` - None, everything is stored in memory
128127
129128### ` plugins/ `
0 commit comments