Adds documentation, fixes bugs, and improves quality for the JavaScript/TypeScript SDK.
Changes
Documentation
sdk/javascript/README.md — install, build, test, usage examples, authentication, pagination, method group reference, and example scripts.
Bug Fixes
sdk/javascript/src/__tests__/client.test.ts — fixed broken import path (./client.js → ../client.js). The old path resolved to __tests__/client.js which doesn't exist.
sdk/javascript/src/methods.ts — ExportMethods was missing update and delete methods, unlike all other method groups. Added them and extended GenericMethods.
- Add sdk/javascript/README.md with install, build, test, usage examples,
authentication, pagination, and method group reference.
- Fix package.json: add files field (dist only) to prevent publishing
source/examples, add engines field (node >= 18).
- Fix test import path: ./client.js → ../client.js (was resolving to
__tests__/client.js which doesn't exist).
- Fix ExportMethods: add update/delete methods and extend GenericMethods
to match all other method groups.
- Consolidate Directus client instances: remove redundant second instance
created for auth, use single instance with both rest() and
authentication() plugins.
- Add sdk/javascript/README.md with install, build, test, usage examples,
authentication, pagination, and method group reference.
- Fix package.json: add files field (dist only) to prevent publishing
source/examples, add engines field (node >= 18).
- Fix test import path: ./client.js → ../client.js (was resolving to
__tests__/client.js which doesn't exist).
- Fix ExportMethods: add update/delete methods and extend GenericMethods
to match all other method groups.
- Consolidate Directus client instances: remove redundant second instance
created for auth, use single instance with both rest() and
authentication() plugins.
Summary
Adds documentation, fixes bugs, and improves quality for the JavaScript/TypeScript SDK.
Changes
Documentation
sdk/javascript/README.md— install, build, test, usage examples, authentication, pagination, method group reference, and example scripts.Bug Fixes
sdk/javascript/src/__tests__/client.test.ts— fixed broken import path (./client.js→../client.js). The old path resolved to__tests__/client.jswhich doesn't exist.sdk/javascript/src/methods.ts—ExportMethodswas missingupdateanddeletemethods, unlike all other method groups. Added them and extendedGenericMethods.Quality Improvements
sdk/javascript/package.json— addedfiles: ["dist"]to prevent publishing source/examples; addedengines: { "node": ">=18" }.sdk/javascript/src/client.ts— consolidated two redundant Directus client instances into one with bothrest()andauthentication()plugins.Verification