Skip to content

Commit

Permalink
Merge pull request #29 from giraugh/changeset-release/main
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
giraugh committed Sep 6, 2023
2 parents e80f19f + da73d11 commit 15531db
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .changeset/modern-meals-fry.md

This file was deleted.

16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @giraugh/tools

## 2.0.0

### Major Changes

- 9334ab0: Change return of `groupArrayBy` to an object of groups.

This allows for more flexibility when working with groups. To migrate existing code that uses groupArrayBy, simple wrap the call with `Object.values()`

```ts
// If you had this before
const usersByRole = groupArrayBy(users, (user) => user.role);

// Change it to this
const usersByRole = Object.values(groupArrayBy(users, (user) => user.role));
```

## 1.7.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@giraugh/tools",
"private": false,
"version": "1.7.0",
"version": "2.0.0",
"type": "module",
"license": "MIT",
"author": "Ewan Breakey (https://ewanb.me)",
Expand Down

0 comments on commit 15531db

Please sign in to comment.