From 99f61def5a83449847560664d05b589b5d03cfcc Mon Sep 17 00:00:00 2001 From: Ryan Atkinson Date: Tue, 8 Oct 2024 14:46:39 -0600 Subject: [PATCH] upgrade gro --- .changeset/flat-months-drum.md | 5 +++++ package-lock.json | 18 +++++++++--------- package.json | 4 ++-- src/lib/gro_plugin_moss.ts | 5 ++--- src/routes/package.ts | 4 ++-- 5 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 .changeset/flat-months-drum.md diff --git a/.changeset/flat-months-drum.md b/.changeset/flat-months-drum.md new file mode 100644 index 00000000..a66128f2 --- /dev/null +++ b/.changeset/flat-months-drum.md @@ -0,0 +1,5 @@ +--- +'@ryanatkn/moss': minor +--- + +upgrade gro diff --git a/package-lock.json b/package-lock.json index 5203df56..4fe18cc4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,11 +10,11 @@ "license": "MIT", "devDependencies": { "@changesets/changelog-git": "^0.2.0", - "@ryanatkn/belt": "^0.25.2", + "@ryanatkn/belt": "^0.25.3", "@ryanatkn/eslint-config": "^0.5.5", "@ryanatkn/fuz": "^0.129.1", "@ryanatkn/fuz_code": "^0.19.0", - "@ryanatkn/gro": "^0.138.2", + "@ryanatkn/gro": "^0.139.0", "@sveltejs/adapter-static": "^3.0.5", "@sveltejs/kit": "^2.6.1", "@sveltejs/package": "^2.3.5", @@ -442,9 +442,9 @@ "peer": true }, "node_modules/@ryanatkn/belt": { - "version": "0.25.2", - "resolved": "https://registry.npmjs.org/@ryanatkn/belt/-/belt-0.25.2.tgz", - "integrity": "sha512-lr3tfKeSwjmo6RU0M0bdl3L5lI19x8NGEN8ZcnKpnH0snSJmiNTd0wj57lKo6xGL/0te5AU8K3Z3XOx53RS4mg==", + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@ryanatkn/belt/-/belt-0.25.3.tgz", + "integrity": "sha512-83HDhTp0mDWlmFnJS+V9vV4XvkvAVdYhV/qRUJsPrkzeGN7IZ+OkZsdzyxluzr2OxwJiDozrmeduQRambiG1nA==", "dev": true, "license": "MIT", "engines": { @@ -541,13 +541,13 @@ } }, "node_modules/@ryanatkn/gro": { - "version": "0.138.2", - "resolved": "https://registry.npmjs.org/@ryanatkn/gro/-/gro-0.138.2.tgz", - "integrity": "sha512-he4DxDnpUQ0neX6WLrMie84IT7gSRQU9s/NKCIrM0qmbn8oVd0Ll804KS9ALRgQHHGerW81zD3joxCpA6xCmew==", + "version": "0.139.0", + "resolved": "https://registry.npmjs.org/@ryanatkn/gro/-/gro-0.139.0.tgz", + "integrity": "sha512-hDBaV5xABTCVkAls4FEsFQsY9PHkpoalWwmeM9t26FHQSury5MpWbq8f+nfdZm5KBXpP9CWdr3fXa4Gqxo5tnQ==", "dev": true, "license": "MIT", "dependencies": { - "@ryanatkn/belt": "^0.25.0", + "@ryanatkn/belt": "^0.25.3", "chokidar": "^4.0.1", "dotenv": "^16.4.5", "es-module-lexer": "^1.5.4", diff --git a/package.json b/package.json index fc555b35..c64ccb24 100644 --- a/package.json +++ b/package.json @@ -32,11 +32,11 @@ }, "devDependencies": { "@changesets/changelog-git": "^0.2.0", - "@ryanatkn/belt": "^0.25.2", + "@ryanatkn/belt": "^0.25.3", "@ryanatkn/eslint-config": "^0.5.5", "@ryanatkn/fuz": "^0.129.1", "@ryanatkn/fuz_code": "^0.19.0", - "@ryanatkn/gro": "^0.138.2", + "@ryanatkn/gro": "^0.139.0", "@sveltejs/adapter-static": "^3.0.5", "@sveltejs/kit": "^2.6.1", "@sveltejs/package": "^2.3.5", diff --git a/src/lib/gro_plugin_moss.ts b/src/lib/gro_plugin_moss.ts index 09da2419..29ab004d 100644 --- a/src/lib/gro_plugin_moss.ts +++ b/src/lib/gro_plugin_moss.ts @@ -1,7 +1,7 @@ import {EMPTY_OBJECT} from '@ryanatkn/belt/object.js'; import type {Plugin} from '@ryanatkn/gro/plugin.js'; import type {Args} from '@ryanatkn/gro/args.js'; -import {throttle} from '@ryanatkn/gro/throttle.js'; +import {throttle} from '@ryanatkn/belt/throttle.js'; import type {Cleanup_Watch} from '@ryanatkn/gro/filer.js'; import {Unreachable_Error} from '@ryanatkn/belt/error.js'; import {format_file} from '@ryanatkn/gro/format_file.js'; @@ -75,8 +75,7 @@ export const gro_plugin_moss = ({ previous_output = output; writeFileSync(outfile, output); }, - flush_debounce_delay, - false, + {delay: flush_debounce_delay, when: 'trailing'}, ); let cleanup: Cleanup_Watch | undefined; diff --git a/src/routes/package.ts b/src/routes/package.ts index 01d0f607..06cd9aed 100644 --- a/src/routes/package.ts +++ b/src/routes/package.ts @@ -31,11 +31,11 @@ export const package_json = { engines: {node: '>=20.17'}, devDependencies: { '@changesets/changelog-git': '^0.2.0', - '@ryanatkn/belt': '^0.25.2', + '@ryanatkn/belt': '^0.25.3', '@ryanatkn/eslint-config': '^0.5.5', '@ryanatkn/fuz': '^0.129.1', '@ryanatkn/fuz_code': '^0.19.0', - '@ryanatkn/gro': '^0.138.2', + '@ryanatkn/gro': '^0.139.0', '@sveltejs/adapter-static': '^3.0.5', '@sveltejs/kit': '^2.6.1', '@sveltejs/package': '^2.3.5',