Skip to content

Commit 31c7f2c

Browse files
authored
Merge pull request #1813 from rosahbruno/remove-node
Remove current node implementation
2 parents d32559f + d9d344f commit 31c7f2c

File tree

24 files changed

+7
-2204
lines changed

24 files changed

+7
-2204
lines changed

.circleci/config.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -124,29 +124,6 @@ jobs:
124124
command: |
125125
export PATH=.:$PATH && npm --prefix ./samples/browser/webext run test
126126
127-
sample-node-test:
128-
docker:
129-
- image: cimg/python:<< pipeline.parameters.python-version >>
130-
steps:
131-
- checkout
132-
- install-node
133-
- run:
134-
name: Install JavaScript dependencies for Glean
135-
command: npm --prefix ./glean install
136-
- run:
137-
name: Install JavaScript dependencies for the Node.js sample
138-
command: |
139-
npm --prefix ./samples/node install
140-
npm --prefix ./samples/node run link:glean
141-
- run:
142-
name: Build the Node.js Glean generated files sample
143-
command: |
144-
npm --prefix ./samples/node run glean
145-
- run:
146-
name: Run Node.js sample test
147-
command: |
148-
export PATH=.:$PATH && npm --prefix ./samples/node run test
149-
150127
browser-compat-smoke-tests:
151128
docker:
152129
- image: cimg/python:<< pipeline.parameters.python-version >>
@@ -261,17 +238,13 @@ workflows:
261238
- sample-webext-test:
262239
requires:
263240
- test
264-
- sample-node-test:
265-
requires:
266-
- test
267241
- hold:
268242
type: approval
269243
requires:
270244
- lint
271245
- build
272246
- test
273247
- sample-webext-test
274-
- sample-node-test
275248
filters:
276249
branches:
277250
ignore:

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ updates:
1616
directory: "/samples/browser/web"
1717
schedule:
1818
interval: "monthly"
19-
- package-ecosystem: "npm"
20-
directory: "/samples/node"
21-
schedule:
22-
interval: "monthly"
2319
- package-ecosystem: "npm"
2420
directory: "/glean/tests/unit/platform/utils/webext/sample"
2521
schedule:

ARCHITECTURE.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An end-to-end data collection platform developed by Mozilla and primarily target
1616
Glean provides multiple client SDKs for different programming languages and platforms.
1717
One of the aspects that guide Glean SDK development is cross-platform consistency and the Glean
1818
JavaScript 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, and web extensions as of the time of writing -- and to be easily extendable
2020
to other platforms as well.
2121

2222
The 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
4040
and the SDK will manage its storage so that data does not remain in storage after it's lifetime is expired.
4141

4242
The 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 (web extensions) and sync (browser). The implementation
4444
is set inside of Glean itself and is not configurable by the user.
4545

46-
### async (Web Extensions, Node)
46+
### async (Web Extensions)
4747

4848
All of the SDKs tasks are queued and executed asynchronously. The APIs exposed by the Glean SDK will only do
4949
the en-queuing of tasks, a quick synchronous operation. Internally, the Glean SDK will handle the
@@ -124,7 +124,6 @@ It also makes testing easier, because the exact same suite of tests can be run f
124124
The 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)
126126
- `webext` - [`storage`](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage)
127-
- `Node` - None, everything is stored in memory
128127

129128
### `plugins/`
130129

automation/size/report.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ async function buildStatsMap() {
2323
name: "Website",
2424
max: await getCustomLibSize("web", METRIC_TYPES, PLUGINS),
2525
min: await getCustomLibSize("web")
26-
},
27-
{
28-
name: "Node.js",
29-
max: await getCustomLibSize("node", METRIC_TYPES, PLUGINS),
30-
min: await getCustomLibSize("node")
3126
}
3227
];
3328
}

automation/size/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const METRIC_TYPES = [
3434

3535
export const PLUGINS = [ "encryption" ];
3636

37-
export const PLATFORMS = [ "web", "webext", "node" ];
37+
export const PLATFORMS = [ "web", "webext" ];
3838

3939
const UNITS = ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
4040
/**
@@ -81,7 +81,7 @@ export function executeCmd(cmd) {
8181
*
8282
* Note: This function will use whatever `@mozilla/glean` package is linked at its runtime.
8383
*
84-
* @param {string} platform The platform to build for, supported platforms are: `web`, `webext` and `node`.
84+
* @param {string} platform The platform to build for, supported platforms are: `web`, and `webext`.
8585
* @param {[string]} metrics An array of metric types. Supported metrics types are listed in `METRIC_TYPES`.
8686
* If not provided the final bundle won't contain any additional metric types.
8787
* @param {[string]} plugins An array of plugins. Supported plugins are listed in `PLUGINS`.

automation/size/webpack.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

55
export default (platform, entry) => {
6-
const target = platform === "node" ? "node"
7-
: ["webext", "web"].includes(platform) ? "web"
8-
: null;
6+
const target = ["webext", "web"].includes(platform) ? "web" : null;
97

108
return {
119
target,

docs/reference/ci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Runs all necessary lints on the code. This includes:
3737

3838
Runs unit and integration test on the `@mozilla/glean` library.
3939

40-
### `sample-webext-test`, `sample-node-test`
40+
### `sample-webext-test`
4141

4242
Runs unit tests on the Glean.js sample apps.
4343

docs/reference/compat.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,3 @@ as Chromium based browsers.
2323
## Web Extensions
2424

2525
> TODO: see [Bug 1752549](https://bugzilla.mozilla.org/show_bug.cgi?id=1752549)
26-
27-
## Node.js
28-
29-
> TODO: see [Bug 1752548](https://bugzilla.mozilla.org/show_bug.cgi?id=1752548)

glean/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"./plugins/*": "./dist/plugins/*.js",
1313
"./uploader": "./dist/core/upload/uploader.js",
1414
"./testing": "./dist/core/testing/index.js",
15-
"./node": "./dist/entry/node.js",
1615
"./webext": "./dist/entry/webext.js",
1716
"./web": "./dist/entry/web.js"
1817
},
@@ -21,9 +20,6 @@
2120
"webext": [
2221
"./dist/types/entry/webext.d.ts"
2322
],
24-
"node": [
25-
"./dist/types/entry/node.d.ts"
26-
],
2723
"web": [
2824
"./dist/types/entry/web.d.ts"
2925
],

glean/src/entry/node.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)