Skip to content

feat: wrapped all promises functions recursively recursively to the root prototype #2

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

Conversation

leynier
Copy link
Owner

@leynier leynier commented Nov 23, 2024

This pull request includes updates to the nuxt-use-async-data-wrapper package to improve the handling of asynchronous data fetching and enhance the documentation. The most significant changes involve updating the status handling in the README examples and improving the function name extraction in the main library file.

Updates to status handling:

  • readme.md: Replaced the pending state with a status state in all examples to provide a more descriptive representation of the asynchronous operation's state. [1] [2] [3] [4]

Improvements to function name extraction:

  • src/index.ts: Improved the function name extraction logic to include functions from the object's prototype chain, ensuring all relevant functions are wrapped.

Version update:

  • package.json: Updated the version from 1.1.0 to 1.2.0 to reflect the new changes and improvements.

Type definition update:

  • src/index.ts: Updated the AsyncDataResult type definition to replace pending with status for better clarity.

@leynier leynier merged commit 4900175 into main Nov 23, 2024
@leynier leynier deleted the feat/wrapped-all-promises-functions-recursively-recursively-to-the-root-prototype branch November 23, 2024 11:34
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