Skip to content

feat(*): Updated all references of robsontenorio to mindedge #3

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

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

JRogaishio
Copy link

Checklist

  • Tests
  • Docs
  • Type definitions

Changes:

  • Added wrap and _unwrap methods to Model.js to mimic Laravel's resource data wrapping. This makes for $first, $find, $get, and $all obsolete but I kept them for backward compatibility. The the overloadable wrap() allows you to automatically unwrap using the standard first, find, get, all methods but also change what the wrapper key is in case you don't want to use the standard 'data' property
  • Lock the defu package to 6.1.2. Version 6.1.3+ has a regression that prevents exported objects from merging with plain objects.
  • Added unit tests for the new wrap() method
  • Added new wrap() type
  • Updated documentation for new wrap() type

@JRogaishio JRogaishio merged commit 0e4744d into master Oct 4, 2024
12 checks passed
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.

1 participant