Skip to content

Commit f9b3d0c

Browse files
author
Lukas Siemon
committed
fix: updated deps
1 parent c96a379 commit f9b3d0c

File tree

7 files changed

+759
-351
lines changed

7 files changed

+759
-351
lines changed

.circleci/config.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,45 @@ workflows:
33
node-multi-build:
44
jobs:
55
- gally-create-pr
6-
- test-node-v16:
6+
- test-node-v18:
77
requires:
88
- gally-create-pr
9-
- test-node-v14:
9+
- test-node-v16:
1010
requires:
1111
- gally-create-pr
12-
- test-node-v18:
12+
- test-node-v20:
1313
requires:
1414
- gally-create-pr
1515
- gally-auto-approve:
1616
requires:
1717
- gally-create-pr
18-
- test-node-v16
19-
- test-node-v14
2018
- test-node-v18
19+
- test-node-v16
20+
- test-node-v20
2121
filters:
2222
branches:
2323
only: /dependabot\/.*/
2424
- release:
2525
requires:
2626
- gally-create-pr
27-
- test-node-v16
28-
- test-node-v14
2927
- test-node-v18
28+
- test-node-v16
29+
- test-node-v20
3030
filters:
3131
branches:
3232
only: master
3333
version: 2
3434
jobs:
3535
gally-create-pr:
3636
docker:
37-
- image: circleci/node:14
37+
- image: cimg/node:16.20
3838
steps:
3939
- checkout
4040
- run: sudo yarn global add gally
4141
- run: ga promote $CIRCLE_BRANCH
4242
release:
4343
docker:
44-
- image: circleci/node:14
44+
- image: cimg/node:16.20
4545
steps:
4646
- checkout
4747
- run:
@@ -71,7 +71,7 @@ jobs:
7171
- run: yarn run semantic-release
7272
gally-auto-approve:
7373
docker:
74-
- image: circleci/node:14
74+
- image: cimg/node:16.20
7575
steps:
7676
- run:
7777
name: Set PR number
@@ -88,9 +88,9 @@ jobs:
8888
- run: >-
8989
ga approve $CIRCLE_PR_NUMBER --condition
9090
"base.ref=dev&state=open&user.login=dependabot-preview[bot]"
91-
test-node-v14:
91+
test-node-v16:
9292
docker:
93-
- image: circleci/node:14
93+
- image: cimg/node:16.20
9494
steps:
9595
- checkout
9696
- run:
@@ -120,9 +120,9 @@ jobs:
120120
- run: >-
121121
(git add . && git diff-index --quiet HEAD --) || (git status && exit
122122
1);
123-
test-node-v16:
123+
test-node-v18:
124124
docker:
125-
- image: circleci/node:16
125+
- image: cimg/node:18.16
126126
steps:
127127
- checkout
128128
- run:
@@ -152,9 +152,9 @@ jobs:
152152
- run: >-
153153
(git add . && git diff-index --quiet HEAD --) || (git status && exit
154154
1);
155-
test-node-v18:
155+
test-node-v20:
156156
docker:
157-
- image: cimg/node:18.0
157+
- image: cimg/node:20.4
158158
steps:
159159
- checkout
160160
- run:

.gally.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"strict": true,
2424
"contexts": [
2525
"ci/circleci: gally-create-pr",
26+
"ci/circleci: test-node-v18",
2627
"ci/circleci: test-node-v16",
27-
"ci/circleci: test-node-v14",
28-
"ci/circleci: test-node-v18"
28+
"ci/circleci: test-node-v20"
2929
]
3030
},
31-
"enforce_admins": true,
31+
"enforce_admins": false,
3232
"required_pull_request_reviews": {
3333
"dismissal_restrictions": {"users": ["simlu"], "teams": []},
3434
"dismiss_stale_reviews": true,

CONFDOCS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Manage various configuration files for an open source npm package on github.
111111
<td align="left" valign="top">
112112
<ul>
113113
<li><a href="#blackfluxrobo-config-plugin-var-ref-packagename">packageName</a></li>
114+
<li><a href="#blackfluxrobo-config-plugin-var-ref-nccexclude">nccExclude</a></li>
114115
<li><a href="#blackfluxrobo-config-plugin-var-ref-nccenabled">nccEnabled</a></li>
115116
<li><a href="#blackfluxrobo-config-plugin-var-ref-nodeversion">nodeVersion</a></li>
116117
<li><a href="#blackfluxrobo-config-plugin-var-ref-repokey">repoKey</a></li>
@@ -492,6 +493,7 @@ Manage package.json for npm package on github.
492493
</td>
493494
<td align="left" valign="top">
494495
<ul>
496+
<li><a href="#blackfluxrobo-config-plugin-var-ref-nccexclude">nccExclude</a></li>
495497
<li><a href="#blackfluxrobo-config-plugin-var-ref-nccenabled">nccEnabled</a></li>
496498
<li><a href="#blackfluxrobo-config-plugin-var-ref-nodeversion">nodeVersion</a></li>
497499
<li><a href="#blackfluxrobo-config-plugin-var-ref-repokey">repoKey</a></li>
@@ -529,6 +531,7 @@ _Updating <a href="#blackfluxrobo-config-plugin-target-ref-packagejson">package.
529531
</td>
530532
<td align="left" valign="top">
531533
<ul>
534+
<li><a href="#blackfluxrobo-config-plugin-var-ref-nccexclude">nccExclude</a></li>
532535
<li><a href="#blackfluxrobo-config-plugin-var-ref-nccenabled">nccEnabled</a></li>
533536
</ul>
534537
</td>
@@ -1554,6 +1557,12 @@ Very similar functionality to npm cli.
15541557
The name of the project as published to npm.
15551558
Note that for scoped packages the name can differ significantly from the repo name.
15561559

1560+
### <a name="blackfluxrobo-config-plugin-var-ref-nccexclude">nccExclude</a> : `array`
1561+
1562+
**Default**: ``
1563+
1564+
*Exclude packages from ncc compilation.*
1565+
15571566
### <a name="blackfluxrobo-config-plugin-var-ref-nccenabled">nccEnabled</a> : `boolean`
15581567

15591568
*Enable ncc for service.*

gardener.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable import/no-extraneous-dependencies */
2+
import process from 'process';
23
import gardener from 'js-gardener';
34
import fs from 'smart-fs';
4-
import process from 'process';
55

66
if (process.argv[1] === fs.filename(import.meta.url)) {
77
gardener({

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414
"object-scan": "18.5.1"
1515
},
1616
"devDependencies": {
17-
"@babel/core": "7.22.1",
18-
"@babel/eslint-parser": "7.21.8",
19-
"@babel/register": "7.21.0",
17+
"@babel/core": "7.22.9",
18+
"@babel/eslint-parser": "7.22.9",
19+
"@babel/register": "7.22.5",
2020
"@blackflux/eslint-plugin-rules": "2.2.0",
21-
"@blackflux/robo-config-plugin": "7.9.20",
22-
"c8": "7.14.0",
21+
"@blackflux/robo-config-plugin": "9.1.7",
22+
"c8": "8.0.1",
2323
"chai": "4.3.7",
24-
"eslint": "8.41.0",
24+
"eslint": "8.46.0",
2525
"eslint-config-airbnb-base": "15.0.0",
26-
"eslint-plugin-import": "2.27.5",
26+
"eslint-plugin-import": "2.28.0",
2727
"eslint-plugin-json": "3.1.0",
28-
"eslint-plugin-markdown": "3.0.0",
28+
"eslint-plugin-markdown": "3.0.1",
2929
"eslint-plugin-mocha": "10.1.0",
30-
"js-gardener": "4.0.2",
30+
"js-gardener": "5.0.0",
3131
"lodash.get": "4.4.2",
3232
"lodash.shuffle": "4.2.0",
33-
"smart-fs": "3.0.1"
33+
"smart-fs": "3.0.2"
3434
},
3535
"scripts": {
3636
"clean": "rm -rf lib",

test/hot.js

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,43 @@ import fs from 'fs';
44
import { URL } from 'url';
55

66
const lookup = {};
7+
let envVars = {};
8+
const port = {}; // dummy variable, not used
9+
10+
/* serialized and passed into main process */
11+
function createListener() {
12+
/* communicate process.env to loader process */
13+
process.env = new Proxy(process.env, {
14+
set(target, key, value) {
15+
// eslint-disable-next-line no-param-reassign
16+
target[key] = value;
17+
port.postMessage(target);
18+
return target[key];
19+
},
20+
deleteProperty(target, key) {
21+
if (!(key in target)) {
22+
return false;
23+
}
24+
// eslint-disable-next-line no-param-reassign
25+
delete target[key];
26+
port.postMessage(target);
27+
return true;
28+
}
29+
});
30+
}
31+
32+
export function globalPreload({ port: p }) {
33+
if (process.versions.node.split('.')[0] < 20) {
34+
/* Skip listener, since process shared before node 20 */
35+
envVars = process.env;
36+
return '(() => {})()';
37+
}
38+
// eslint-disable-next-line no-param-reassign
39+
p.onmessage = ({ data }) => {
40+
envVars = data;
41+
};
42+
return `(${createListener})()`;
43+
}
744

845
export const resolve = async (specifier, context, defaultResolve) => {
946
const result = await defaultResolve(specifier, context, defaultResolve);
@@ -59,7 +96,7 @@ export const resolve = async (specifier, context, defaultResolve) => {
5996
}
6097
}
6198

62-
if (!('TEST_SEED' in process.env)) {
99+
if (!('TEST_SEED' in envVars)) {
63100
return result;
64101
}
65102

@@ -69,7 +106,7 @@ export const resolve = async (specifier, context, defaultResolve) => {
69106

70107
if (Array.isArray(lookup[childPath].reload)) {
71108
const hash = lookup[childPath].reload.reduce(
72-
(p, c) => p.update(c).update(process.env[c] || '<undefined>'),
109+
(p, c) => p.update(c).update(envVars[c] || '<undefined>'),
73110
crypto.createHash('md5')
74111
).digest('hex');
75112
return {
@@ -78,6 +115,6 @@ export const resolve = async (specifier, context, defaultResolve) => {
78115
}
79116

80117
return {
81-
url: `${child.href}?id=${process.env.TEST_SEED}`
118+
url: `${child.href}?id=${envVars.TEST_SEED}`
82119
};
83120
};

0 commit comments

Comments
 (0)