Skip to content

add monocole ts for all properties operations - #8

Open
regevbr wants to merge 7 commits into
IMax153:masterfrom
regevbr:monocle
Open

add monocole ts for all properties operations#8
regevbr wants to merge 7 commits into
IMax153:masterfrom
regevbr:monocle

Conversation

@regevbr

@regevbr regevbr commented Jun 19, 2021

Copy link
Copy Markdown

This PR replaces all the {...obj} usages in the code to use the awesome gcanti/monocle-ts library.
I couldn't help myself and I also updated some dependencies, fixed deprecated usages of fp-ts and transformed toFlags to be more "functional". I also made the CI run on PRs

@regevbr

regevbr commented Jun 19, 2021

Copy link
Copy Markdown
Author

@IMax153 can you please CR? all the tests are passing ofcourse

@IMax153

IMax153 commented Jun 19, 2021

Copy link
Copy Markdown
Owner

Hey @regevbr! Thank you so much for the PR - the lib is definitely well past due for an update, so this is much appreciated!

I’m on vacation for the next two weeks, but once I have a chance to sit down in front of my computer I will take a look and approve!

Comment thread package.json
Comment on lines +37 to +38
"fp-ts": "^2.10.5",
"monocle-ts": "^2.3.10"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

In thinking about this PR further, the addition of monocle-ts as a peer-dependency of expressive-ts would be considered a breaking change for users of the library. The update to the fp-ts version is also a soft breaking change, since it's a peer dependency of the lib.

I would like to avoid implementing any breaking changes until the fp-ts@3.0.0 release, at which point we can collaborate on a revamp of the entire expressive-ts library.

We can leave this PR open until then if that is alright?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sounds good

Comment thread src/Expression.ts Outdated
Comment thread src/Expression.ts Outdated
@regevbr

regevbr commented Jun 24, 2021

Copy link
Copy Markdown
Author

@IMax153 thanks for the CR! Can you please approve the workflow so the CI can run for this PR?

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.

2 participants