@freckle/ajax
v4.0.0
Published
Freckle ajax helpers
Keywords
Readme
@freckle/ajax
Install
pnpm add @freckle/ajaxThe ajax helpers call jQuery through the global $, so consumers must install
jQuery on the global object before using them.
Development
pnpm install| Script | What it does |
| ------------------- | --------------------------------------------------------- |
| pnpm build | Compiles src/ to dist/ via tsconfig.build.json |
| pnpm test | Runs the vitest suite |
| pnpm coverage | Runs the suite with v8 coverage, gated at 70% |
| pnpm typecheck | tsc --noEmit, including test files |
| pnpm lint | ESLint |
| pnpm knip | Reports unused files, dependencies and exports |
| pnpm format | Rewrites src/**/*.ts with prettier |
| pnpm format-check | Checks src/**/*.ts formatting without writing |
dist/ is committed. Run pnpm build and commit the result when you change
src/; CI fails otherwise.
Release
See RELEASE.md.
Ajax helpers
See ajax.ts.
Link header
See link-header.ts.
