mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-06-06 04:47:08 +00:00
Replace the third-party `uuid` package with the native `crypto.randomUUID()`
function available in Node.js, reducing the bundle size and external
dependencies.
- Remove `uuid` from `dependencies` in `package.json`
- Replace `import {v4 as uuidv4} from 'uuid'` with `import {randomUUID} from 'crypto'` in `src/create-or-update-branch.ts`
- Replace all `uuidv4()` calls with `randomUUID()` in `__test__/create-or-update-branch.int.test.ts`
- Rebuild `dist/index.js`, removing ~680 lines of bundled `uuid` library code
- Update `package-lock.json` to reflect removed dependency
|
||
|---|---|---|
| .. | ||
| create-or-update-branch.int.test.ts | ||
| entrypoint.sh | ||
| git-command-manager.int.test.ts | ||
| git-config-helper.int.test.ts | ||
| git-config-helper.unit.test.ts | ||
| integration-tests.sh | ||
| utils.unit.test.ts | ||