pulsar-edit / package-backend

Pulsar Server Backend for Packages
https://api.pulsar-edit.dev
MIT License
12 stars 11 forks source link

Implement `PackageObject` Object Builder within `vcs.newPackageData()` #92

Closed confused-Techie closed 1 year ago

confused-Techie commented 1 year ago

Requirements

Description of the Change

This PR is branched from #86 and builds off the changes there.

We now can use the PackageObject Object Builder within the vcs.newPackageData() function, which will ensure all new packages are created properly and without issue.

Simplifying the way they are built, and bringing all data decisions into a single place. Additionally this PR includes many bug fixes and improvements to the PackageObject builder itself, allowing it to be more fault tolerant of receiving invalid or unexpected data.

This does cause it to be slightly opinionated in nature, but that will be left to further PRs to document it's usage and behavior.