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

Use TypeScript and update immutable to version 4.0.0-rc.12 #20

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

nggonzalez
Copy link

Description

Modernize the library by adding Typescript and prettier, updating function names, creating smaller files, and updating dependencies.

Updates immutable to the latest version (4.0.0-rc.12) and adds an option for AnonymousRecords when the recordType is not found.

Changes

  • Update Iterable.isIterable to the new isCollection method for determining if something is an immutable Collection (Map, Set, List, OrderedSet, OrderedMap, Stack)
  • Update instanceof Record to Record.isRecord for checking if something is a Record
  • Remove record.toMap() and use record.toSeq() to iterate through key/value pairs
  • Add an option for throwOnMissingRecordType which defaults to true. When false, this option will enable the creation of AnonymousRecords that contain all of the data keys found in the initially decodedData.
  • Remove babel
  • Update ava dependency
  • Add typescript and tsconfig
  • Add tslint
  • Add husky and lint-staged
  • Export types

@nggonzalez
Copy link
Author

@avocode Would appreciate your review when you get a chance

@nggonzalez
Copy link
Author

Ping @avocode

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.

1 participant