Repository navigation
Release 1.4.0
LGTM. No new critical alerts introduced.
Try it:
curl -s "https://doaas.dev/lgtm?format=text"Added
- HTTP
405 Method Not Allowed— Non-GETrequests now receive a405response withAllow: GET, OPTIONSand a JSON{ "error": "Method not allowed" }body, matching HTTP semantics. Tests added forPOST,PUT,PATCH,DELETE,HEAD.
Changed
- Observability — Enabled traces in
wrangler.toml([observability.traces].enabled = true) alongside existing invocation logs (head_sampling_rate = 1) for clearer production visibility. - TypeScript 6 — Bumped
typescriptto 6.0.3 (Dependabot #70). Switchedtsconfig.jsonmoduleResolutionfrom"node"(deprecated alias fornode10in TS 6, errors withTS5107) to"bundler"(#74), the correct fit for a Cloudflare Worker bundled by Wrangler/esbuild with"module": "ESNext".typescript-eslintv8.58+ already supports TS 6, so no floor bump was required. - Dependencies — npm — Rolled up Dependabot bumps for
ajv,prettier,@types/node,@cloudflare/workers-types,markdownlint-cli,typescript-eslint,wrangler,lint-staged,eslint(10),@eslint/js, andeslint-plugin-security(4). Alignedpackage-lock.jsonwithpackage.json. Tightened theminimatchoverride to>=10.2.4;npm audit --audit-level=highis clean. - Dependencies — GitHub Actions — Bumped
actions/checkoutto v6.0.2 (SHA-pinned),actions/setup-nodeto v6.4.0,actions/upload-artifactto v7.0.1,actions/github-scriptto v9, andsoftprops/action-gh-releaseto v3. Addedworkflow_dispatchto the Scorecards workflow for on-demand runs. - Dependabot configuration — Grouped npm and GitHub Actions patch/minor updates to reduce PR churn (majors still surface as standalone PRs).
Fixed
- Moderation script (ESLint 10) — Removed a redundant initializer tripping
no-useless-assignmentunder ESLint 10.