Skip to content

Merge Changes into Main from Canary (v1.1.0-5a0ccd0)#11

Merged
Marty-Byrde merged 9 commits intomainfrom
canary
Feb 24, 2025
Merged

Merge Changes into Main from Canary (v1.1.0-5a0ccd0)#11
Marty-Byrde merged 9 commits intomainfrom
canary

Conversation

@Marty-Byrde
Copy link
Member

@Marty-Byrde Marty-Byrde commented Feb 24, 2025

This PR was automatically created by the Auto-Create-PR-Canary workflow to merge changes from the canary branch into main. These changes are based on v1.1.0 and the latest commit on main (5a0ccd0).

Automatically generated by auto-pr-description

This pull request introduces several changes to the project, including the addition of new files, modifications to existing ones, and updates to the build process and dependencies. These changes aim to improve the project's functionality and maintainability.

New Files

  • functions/_exports.ts: This file exports the getOrders and getProducts functions, which are now available for use in the project.

Core Logic

  • index.ts: This file now imports and exports functions from the _exports.ts file, and sets up the Woocommerce class to initialize the API with credentials.

Build Process Improvements

  • package.json: The build script now includes tsc-alias to handle path aliases during the build process, and an exports field has been added to define the entry points for the module, improving its usability as a package.

Schema Updates

  • schemas/WoocommerceCredentials.ts: Updated type export to use the schema directly.

Dependency Updates

  • package.json: Added tsc-alias as a dependency.
  • yarn.lock: Updated dependencies to reflect the changes in package.json.

@Marty-Byrde
Copy link
Member Author

🎉 This PR is included in version 1.2.0-canary.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@codecov
Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
schemas/WoocommerceCredentials.ts 100.00% <ø> (ø)

The re-exported functions in the exports_.ts file are imported and assigned to the class making them accessible to consumers.
The reason for this is change is to remove path aliases within the package with relative / absolute paths.
The reason for this change is that by using StripZodDefault on an inferred schema makes the type unaccessible for consumers.
@Marty-Byrde
Copy link
Member Author

🎉 This PR is included in version 1.2.0-canary.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@Marty-Byrde Marty-Byrde merged commit 8c597e8 into main Feb 24, 2025
6 checks passed
@Marty-Byrde
Copy link
Member Author

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant