Major Updates and Configuration Adjustments #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
This MR encompasses significant updates across several aspects of the project, including the GitHub Actions workflows, the TypeScript configuration, the
js-randomize
library, and the project's documentation. Key changes include the introduction of a new class-based API forjs-randomize
, updates to GitHub Actions workflows, and revisions to the README and changelog.Changes:
js-randomize
Library:Breaking Changes:
Randomize
class with updated method names and enhanced functionality. The new methods includeinteger()
,float()
,intArray()
,floatArray()
,boolean()
,pick()
,sample()
,shuffle()
, andstring()
.int()
→integer()
array()
→sample()
pick()
andstring()
methods for more versatile functionality.TypeScript Integration: Enhanced TypeScript support with type definitions for better development experience.
GitHub Actions Workflow:
Testing Workflow Updates:
pnpm
for consistency in dependency management.npm
topnpm
for installation and build steps.Publish Workflow Updates:
pnpm
: Adjusted the publish workflow to usepnpm
for installing dependencies and building the project.Documentation:
README:
Changelog:
js-randomize
.Impact:
js-randomize
library provides a more robust and feature-rich API. The class-based approach and new methods enhance flexibility and usability.Note:
js-randomize
version and workflow changes.