πŸš€ Nano ID 0.1

@JonL - got this working, thank you!!

Wondering, why would you personally choose Asynchronous over Synchronous?

Async doesn’t block the main thread. That means that the server can do other things while calculating nanoid.

1 Like

Perfect, thank you!

what’s PR?

Requests to add/modify code.

https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests

1 Like

What do you use this for in your projects? Hiding the integer ID in URLs? How so?

UUID replacement. What do you mean with hiding ID?

/book/123
/book/hr389rh4uirh849th

Prevent seeing people how many books you have in the DB :wink:

Ah, yeah. Mainly for that.

Wappler 5 beta 10, Windows 11, NodeJS, Using Docker

Hi, I have an error with the extension:

package.json / installed by npm i nanoid in terminal / then redeployed
image

The extension is normally installed:
image

It’s recognized:

Then applied in steps.
image

But in I get this error in try/catch:
"require() of ES Module /opt/node_app/node_modules/nanoid/index.js from /opt/node_app/extensions/server_connect/modules/nanoid.js not supported.\nInstead change the require of index.js in /opt/node_app/extensions/server_connect/modules/nanoid.js to a dynamic import() which is available in all CommonJS modules."

Without Try/Catch

code: "ERR_REQUIRE_ESM"
message: "require() of ES Module /opt/node_app/node_modules/nanoid/index.js from /opt/node_app/extensions/server_connect/modules/nanoid.js not supported.\nInstead change the require of index.js in /opt/node_app/extensions/server_connect/modules/nanoid.js to a dynamic import() which is available in all CommonJS modules."
stack: "Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/node_app/node_modules/nanoid/index.js from /opt/node_app/extensions/server_connect/modules/nanoid.js not supported.\nInstead change the require of index.js in /opt/node_app/extensions/server_connect/modules/nanoid.js to a dynamic import() which is available in all CommonJS modules.\n    at Object.<anonymous> (/opt/node_app/extensions/server_connect/modules/nanoid.js:1:54)\n    at App._exec (/opt/node_app/lib/core/app.js:473:30)\n    at App._exec (/opt/node_app/lib/core/app.js:458:28)\n    at App.exec (/opt/node_app/lib/core/app.js:427:20)\n    at App.condition (/opt/node_app/lib/modules/core.js:105:28)\n    at App._exec (/opt/node_app/lib/core/app.js:491:57)\n    at App.exec (/opt/node_app/lib/core/app.js:427:20)\n    at App.condition (/opt/node_app/lib/modules/core.js:105:28)\n    at App._exec (/opt/node_app/lib/core/app.js:491:57)\n    at App.exec (/opt/node_app/lib/core/app.js:427:20)\n    at App.condition (/opt/node_app/lib/modules/core.js:105:28)\n    at App._exec (/opt/node_app/lib/core/app.js:491:57)\n    at App.exec (/opt/node_app/lib/core/app.js:427:20)\n    at App.condition (/opt/node_app/lib/modules/core.js:105:28)\n    at App._exec (/opt/node_app/lib/core/app.js:491:57)\n    at App._exec (/opt/node_app/lib/core/app.js:458:28)\n    at async App.exec (/opt/node_app/lib/core/app.js:427:9)\n    at async App.condition (/opt/node_app/lib/modules/core.js:108:13)\n    at async App._exec (/opt/node_app/lib/core/app.js:491:30)\n    at async App.exec (/opt/node_app/lib/core/app.js:427:9)\n    at async App.define (/opt/node_app/lib/core/app.js:417:9)"
status: "500"

Thanks in advances

You need to use branch 3.x of nanoid. 3.3.4 is the latest.
4.x dropped support for CommonJS.

Works perfect! Thanks.

UI bug report, the step name β€œsecret” is not shown on the Database Binding Picker:

Screenshot

If you look at something like a Database Query, you see the step name there