postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.86k stars 841 forks source link

Allow uuid v7 #13228

Open mvndaai opened 3 weeks ago

mvndaai commented 3 weeks ago

Is there an existing request for this feature?

Is your feature request related to a problem?

According to this documentation https://learning.postman.com/docs/tests-and-scripts/write-scripts/postman-sandbox-api-reference/#using-external-libraries?deviceId=d42082ba-0aa7-49f5-b365-71dad111d771 Postman includes this uuid library built in https://www.npmjs.com/package/uuid. The library supports v7 but postman does not.

V7 makes the UUIDs sortable by a timestamp which is a benefit

Describe the solution you'd like

In a prerequest script we can currently do

const uuid = require('uuid')
console.log(uuid.v4())

Update that dependency so we can do v7 too.

console.log(uuid.v7())

Describe alternatives you've considered

No response

Additional context

No response