Skip to content
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

Update changelog since v2.0.2 #75

Merged
merged 3 commits into from
Jan 24, 2021
Merged

Update changelog since v2.0.2 #75

merged 3 commits into from
Jan 24, 2021

Conversation

thomashoneyman
Copy link
Member

Description of the change

This PR updates the CHANGELOG in preparation for the upcoming release of this library.

Related: purescript/purescript#3985

CHANGELOG.md Outdated

Bugfixes:

Other improvements:
- Updated `Record.Builder.merge` and `Record.Builder.union` to override existing fields (#73)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change is breaking? @kl0tl could you clarify?

Copy link
Member

@kl0tl kl0tl Jan 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the behaviour of Record.Builder.merge and Record.Builder.union, so that

build (merge { x: 1, y: "y" }) { y: 2, z: true }

has now type

{ x :: Int, y :: String, z :: Boolean }
-- instead of 
{ x :: Int, y :: Int, z :: Boolean }

and

build (union { x: 1, y: "y" }) { y: 2, z: true }

has now type

{ x :: Int, y :: String, y :: Int, z :: Boolean }
-- instead of 
{ x :: Int, y :: Int, y :: String, z :: Boolean }

This is indeed a breaking change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I edited Cyril's comment above to make the differences easier to see.

@kl0tl What's a good way to summarize this change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think of:

Updated Record.Builder.merge and Record.Builder.union so that they behave like Record.merge and Record.union: fields from the argument override those of the record being built in case of overlaps.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

@JordanMartinez
Copy link
Contributor

This looks good otherwise

@thomashoneyman thomashoneyman merged commit 7bf61ab into master Jan 24, 2021
@thomashoneyman thomashoneyman deleted the changelog-0.14 branch January 24, 2021 02:02
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.

3 participants