Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(modify): Support x-jsf shorthands in all methods, fix TS declarations; mark createHeadlessForm config.customProperties as deprecated #85

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

sandrina-p
Copy link
Collaborator

@sandrina-p sandrina-p commented Jul 29, 2024

This PR has multiple small fixes after #81 and #84

  • fix(modify): Add missing support to x-jsf- shorthands in config.allFields — Added tests for all needed methods (and config.fields and config.create).
  • fix(modify): Some TS declarations were wrong:
    • config.fields value as callback function should have 1 param (fieldAttrs), not 2. (fieldName, fieldAttrs)
    • config.create value should be an object only, it cannot be a callback fn.
  • chore(createHeadlessForm): Mark config.customProperties as deprecated in code, tests, and TS declarations.

- config.create should be just an object, not supporting callback fn.
- config.fields callback function should have 1 param (fieldAttrs), not 2. (fieldName, fieldAttrs)
@sandrina-p sandrina-p self-assigned this Jul 29, 2024
@sandrina-p sandrina-p merged commit 9a87c19 into main Jul 29, 2024
3 checks passed
@sandrina-p sandrina-p deleted the pbyr-1372--missing-shorthands-in-allFields branch July 29, 2024 10:35
@sandrina-p sandrina-p changed the title fix(modify): Support x-jsf shorthands in all methods, fix TS declarations, and mark config.customProperties as deprecated fix(modify): Support x-jsf shorthands in all methods, fix TS declarations; mark createHeadlessForm config.customProperties as deprecated (#85) Jul 29, 2024
@sandrina-p sandrina-p changed the title fix(modify): Support x-jsf shorthands in all methods, fix TS declarations; mark createHeadlessForm config.customProperties as deprecated (#85) fix(modify): Support x-jsf shorthands in all methods, fix TS declarations; mark createHeadlessForm config.customProperties as deprecated Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants