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

Remove class library, use normal prototypes #123

Merged
merged 1 commit into from
Jul 16, 2019
Merged

Remove class library, use normal prototypes #123

merged 1 commit into from
Jul 16, 2019

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Jul 10, 2019

This drops our custom class library (at lib/class.js) and replaces it with "normal" JavaScript prototypes. This has three benefits:

  1. Things like console.log(myRecord) will output Record in the console instead of Class, improving developer experience
  2. Shaves ~4 kilobytes off the browser build
  3. Simplifies the setup (remove a library)

npm test passes after this change.

The whitespace-free version of this diff is much easier to review.

This drops our custom class library (at `lib/class.js`) and replaces it
with "normal" JavaScript prototypes. This has three benefits:

1. Things like `console.log(myRecord)` will output `Record` in the
   console instead of `Class`, improving developer experience
2. Shaves ~4 kilobytes off the browser build
3. Simplifies the setup (remove a library)

`npm test` passes after this change.
@EvanHahn EvanHahn requested review from jbbakst and kasrak July 10, 2019 19:13
@kasrak kasrak merged commit b3e7b21 into master Jul 16, 2019
@EvanHahn EvanHahn deleted the removeClassJs branch July 16, 2019 03:24
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