Skip to content

Commit

Permalink
Project update. [p][robotic]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Feb 25, 2024
1 parent 62828b6 commit 5438ad7
Show file tree
Hide file tree
Showing 16 changed files with 100 additions and 123 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Feb 25, 2024 5:57 AM UTC.
# Last generated Feb 25, 2024 6:47 AM UTC.

[production]
node >= 20.9.0
Expand Down
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Feb 25, 2024 5:57 AM UTC.
# Last generated Feb 25, 2024 6:47 AM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Feb 25, 2024 5:57 AM UTC.
# Last generated Feb 25, 2024 6:47 AM UTC.

# Default

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Feb 25, 2024 5:57 AM UTC.
# Last generated Feb 25, 2024 6:47 AM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Generated data.
# <generated:start>

# Last generated Feb 25, 2024 5:57 AM UTC.
# Last generated Feb 25, 2024 6:47 AM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Feb 25, 2024 5:57 AM UTC.
# Last generated Feb 25, 2024 6:47 AM UTC.

# Packages

Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @note This entire file will be updated automatically.
* @note Instead of editing here, please review `./settings.mjs`.
*
* Last generated using `./settings.mjs` Feb 25, 2024 5:57 AM UTC.
* Last generated using `./settings.mjs` Feb 25, 2024 6:47 AM UTC.
*/
{
"editor.formatOnType": false,
Expand Down
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Feb 25, 2024 5:57 AM UTC.
# Last generated Feb 25, 2024 6:47 AM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion dev-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ declare namespace globalThis {
/**
* Declares PWA install event, which we implement for SPAs.
*/
let pwaInstallEvent: Event & { prompt: () => void };
var pwaInstallEvent: Event & { prompt: () => void };

/**
* Defines missing `entries()` on FormData.
Expand Down
4 changes: 2 additions & 2 deletions dev/.files/bin/includes/node-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
export default {
previous: '20.5.0',
current: '20.9.0',
forwardCompat: [],
forwardCompat: ['21.6.2'],

npm: {
previous: '9.8.0',
current: '10.1.0',
forwardCompat: [],
forwardCompat: ['10.2.4'],
},
};
9 changes: 8 additions & 1 deletion dev/.files/madrun/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ const projDir = path.resolve(__dirname, '../../..');
const distDir = path.resolve(__dirname, '../../../dist');

const nodeIncludeFile = path.resolve(__dirname, './includes/node.cjs');
const nodeEnvVars = { NODE_OPTIONS: $cmd.quote([`--require ${$cmd.esc(nodeIncludeFile)}`].join(' ')) };
const nodeEnvVars = {
NODE_OPTIONS: $cmd.quote(
[
// `--disable-warning ExperimentalWarning`, // v21.3.0+; {@see https://o5p.me/ZKO1Cq}.
`--require ${$cmd.esc(nodeIncludeFile)}`, // Currently empty, but for future use.
].join(' '),
),
};
const cloudflareEnvVars = { CLOUDFLARE_API_TOKEN: process.env.USER_CLOUDFLARE_TOKEN || '' };

/**
Expand Down
30 changes: 0 additions & 30 deletions dev/.files/madrun/includes/node.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,3 @@
* @note This entire file will be updated automatically.
* @note Instead of editing here, please review <https://github.com/clevercanyon/skeleton>.
*/

// @todo: Ditch this in favor of https://nodejs.org/api/cli.html#--disable-warningcode-or-type in latest Node.

// We only want to apply the following once.
if (!process.env.C10N_SKELETON_MADRUN_NODE_INCLUDE_DONE) {
// i.e., We are including now, and we only do this once.
process.env.C10N_SKELETON_MADRUN_NODE_INCLUDE_DONE = true;

// Saves original emitter.
const originalEmitter = process.emit;

// Filters Node-emitted warnings.
process.emit = (event, error) => {
if (
'warning' === event && //
error instanceof Error &&
'ExperimentalWarning' === error.name &&
error.message
) {
if (
error.message.includes('Web Crypto API algorithm is an experimental feature') ||
error.message.includes('Import assertions are not a stable feature') || //
error.message.includes('Importing JSON modules is an experimental feature')
) {
return false; // OK to suppress.
}
}
return originalEmitter.apply(process, [event, error]);
};
}
Loading

0 comments on commit 5438ad7

Please sign in to comment.