Skip to content

Update: Remove unnecessary Promise.all from synchronous schema.sanitise calls#97

Merged
taylortom merged 1 commit intomasterfrom
update/sync-schema-api
Mar 26, 2026
Merged

Update: Remove unnecessary Promise.all from synchronous schema.sanitise calls#97
taylortom merged 1 commit intomasterfrom
update/sync-schema-api

Conversation

@taylortom
Copy link
Copy Markdown
Collaborator

Fixes adapt-security/adapt-authoring-jsonschema#58

Update

  • Remove Promise.all + async map from sanitise()schema.sanitise() is now synchronous in adapt-schemas v3
  • Fetch schema once instead of per-item since getSchema returns the same schema for the same name

Testing

  1. Run npm test
  2. Verify API sanitisation still works for insert/update/find operations

Depends on adapt-security/adapt-authoring-jsonschema#57

🤖 Generated with Claude Code

…se calls

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@taylortom taylortom merged commit f0b0b86 into master Mar 26, 2026
2 checks passed
@taylortom taylortom deleted the update/sync-schema-api branch March 26, 2026 11:53
github-actions Bot pushed a commit that referenced this pull request Mar 26, 2026
# [3.6.0](v3.5.0...v3.6.0) (2026-03-26)

### Update

* Remove unnecessary Promise.all from synchronous schema.sanitise calls (#97) ([f0b0b86](f0b0b86)), closes [#97](#97)
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 3.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update: Adapt to synchronous adapt-schemas v3.0.0 API

1 participant