optimade
Version:
Aggregating Optimade client for the online materials databases
30 lines (21 loc) • 1.66 kB
Markdown
## 1. Dependency declarations
- [x] 1.1 In `package.json`, bump `devDependencies.rollup-plugin-typescript2` from `^0.28.0` to `^0.37.0`.
- [x] 1.2 In `package.json`, remove `node-abort-controller` from `dependencies`.
- [x] 1.3 Run `npm install` to refresh `package-lock.json` (rpt2 0.37 should bring `@rollup/pluginutils@^4`; verify with `npm ls @rollup/pluginutils`).
- [x] 1.4 Confirm `npm ls rollup-plugin-typescript2` reports `0.37.x` and that `node-abort-controller` is no longer present in the tree.
## 2. Prefetch script
- [x] 2.1 In `prefetch.js`, remove the `const { AbortController } = require('node-abort-controller');` import.
- [x] 2.2 In `prefetch.js`, remove the `global.AbortController = AbortController;` override.
- [x] 2.3 Leave `src/utils.ts` unchanged (it already uses the global `AbortController`).
## 3. Verify build
- [x] 3.1 Run `npm run build` and confirm exit code 0.
- [x] 3.2 Confirm `dist/index.mjs` exists and is non-empty.
- [x] 3.3 Confirm `dist/index.js` exists, is non-empty, and contains a UMD wrapper.
- [x] 3.4 Confirm no `Unexpected token ... you need plugins to import files that are not JavaScript` error is raised.
## 4. Verify prefetch
- [x] 4.1 Run `node prefetch.js` on Node 18+.
- [x] 4.2 Confirm no `TypeError: this.removeEventListener is not a function` is thrown.
- [x] 4.3 Confirm transient per-provider JSON/HTTP errors are caught (existing behavior) and do not crash the process.
## 5. Verify publish pipeline
- [x] 5.1 Run `npm publish --dry-run` and confirm `prepublishOnly` (`build` + `prefetch`) completes with exit code 0.
- [x] 5.2 Confirm `dist/` artifacts are the ones packaged by npm.