Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Punycode module is deprecated error in Node v22.12 using Zapier CLI #937

Open
dagoodma opened this issue Dec 18, 2024 · 0 comments
Open

Comments

@dagoodma
Copy link

dagoodma commented Dec 18, 2024

I am seeing an error whenever I run any zapier CLI commands. Here's the error I'm seeing and some info on my versions and project package.json file:
(Note that I've redacted some identifying info with xxx).

Here's the deprecation warning that appears for every zapier command I enter:

$ zapier versions
⠋ Loading versions(node:195258) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✔ Loading versions
...

Here's the modules that are using punycode:

$ npm ls punycode
[email protected] /home/xxx
└─┬ [email protected]
  └─┬ [email protected]
    ├── [email protected]
    └─┬ [email protected]
      └── [email protected] deduped
$ npm --version
10.9.2
$ node --version
v22.12.0

Contents of package.json:

{
  "name": "xxx",
  "version": "X.Y.Z",
  "description": "xxx",
  "homepage": "xxx",
  "main": "index.js",
  "scripts": {
    "predeploy": "zapier test",
    "deploy": "zapier push",
    "test": "cross-env ZAPIER_KEY=yup ZAPIER_SECRET=S3cr3t! ENCRYPTION_KEY=yakkafoobmog nyc --reporter=lcov --reporter=text-summary mocha \"./{,!(node_modules|__mocks__)/**/}*.spec.js\""
  },
  "engines": {
    "node": ">=12.0.0",
    "npm": ">=5.6.0"
  },
  "dependencies": {
    "xxx": "^5.0.0",
    "xxx": "^1.3.0",
    "dlv": "^1.1.3",
    "inso": "^1.0.0",
    "thenby": "^1.3.0",
    "zapier-platform-cli": "16.0.0",
    "zapier-platform-core": "16.0.0"
  },
  "devDependencies": {
    "cross-env": "^5.2.0",
    "husky": "^3.0.3",
    "lcov-summary": "^1.0.1",
    "mocha": "^5.2.0",
    "nyc": "^14.1.1",
    "prettier": "^1.18.2",
    "pretty-quick": "^1.11.1",
    "should": "^13.2.0",
    "should-sinon": "0.0.6",
    "should-spies": "^1.1.0",
    "sinon": "^7.4.1"
  },
  "nyc": {
    "all": true,
    "include": [
      "**/*.js"
    ],
    "exclude": [
      "__mocks__",
      "node_modules",
      "build",
      "coverage",
      "**/*.spec.js",
      "appendCoverageResults.js"
    ]
  },
  "husky": {
    "hooks": {
      "pre-commit": "cross-env ZAPIER_KEY=yup ZAPIER_SECRET=S3cr3t! nyc --reporter=text-summary mocha \"./{,!(node_modules|__mocks__)/**/}*.spec.js\" > coverage/lcov.txt && node appendCoverageResults.js && git add . && pretty-quick --staged && git add ."
    }
  },
  "prettier": {
    "singleQuote": true
  }
}

Originally posted by @dagoodma in #902 (comment)

@dagoodma dagoodma changed the title I am also seeing this error whenever I run any zapier CLI commands. Here's the error I'm seeing and some info on my versions and project package.json file: Punycode module is deprecated error in Node v22.12 using Zapier CLI Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant