Skip to content

feat: ensure wraps only promise-returning functions and handles non-promise returns #1

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 4 commits into from
Nov 23, 2024

Conversation

leynier
Copy link
Owner

@leynier leynier commented Nov 23, 2024

This pull request includes several changes to enhance code formatting and improve the useAsyncDataWrapper utility. The most important changes include adding Prettier configuration, updating dependencies, and refining the useAsyncDataWrapper function to ensure better compatibility and functionality.

Functionality Enhancements:

  • src/index.ts: Improved the useAsyncDataWrapper function to ensure it only includes functions that return Promises and added better handling for functions with and without arguments. [1] [2] [3] [4]

Code Formatting Improvements:

  • .prettierrc: Added a Prettier configuration file with specific formatting rules.
  • .vscode/settings.json: Configured VSCode to format code on save using Prettier.

Dependency Updates:

  • package.json: Updated the version to 1.1.0, added Prettier as a dev dependency, and reordered peerDependencies. [1] [2]
  • pnpm-lock.yaml: Added Prettier to the importers, packages, and snapshots sections. [1] [2] [3]

@leynier leynier merged commit 138cd1d into main Nov 23, 2024
@leynier leynier deleted the next branch November 23, 2024 10:31
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