planche 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -788,6 +788,12 @@ function openInBrowser(url) {
788
788
  }
789
789
  }
790
790
  function main() {
791
+ const major = Number(process.versions.node.split(".")[0]);
792
+ if (major < 22) {
793
+ console.error(`planche needs Node.js 22 or newer (you are running ${process.version}).`);
794
+ console.error("Try `nvm use 22` or `npx -p node@22 planche`.");
795
+ process.exit(1);
796
+ }
791
797
  let values;
792
798
  try {
793
799
  values = parseArgs({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "planche",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Local agent for Planche — lets the browser-based Planche SQL client reach MySQL/MariaDB/PostgreSQL/SQLite databases from your machine.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://planche.dev",