Skip to content

Private Static Class Methods (Stage 3)#9446

Merged
nicolo-ribaudo merged 9 commits intobabel:masterfrom
tim-mc:private-static-methods
Mar 12, 2019
Merged

Private Static Class Methods (Stage 3)#9446
nicolo-ribaudo merged 9 commits intobabel:masterfrom
tim-mc:private-static-methods

Conversation

@tim-mc
Copy link
Contributor

@tim-mc tim-mc commented Feb 2, 2019

Q                       A
Fixed Issues? babel/proposals#55
Patch: Bug Fix? --
Major: Breaking Change? --
Minor: New Feature? Add private static class method support
Tests Added + Pass? WIP
Documentation PR Link
Any Dependency Changes? No
License MIT

cc @robpalme @nicolo-ribaudo @littledan

@tim-mc tim-mc force-pushed the private-static-methods branch from 8893a12 to f502e36 Compare February 2, 2019 19:46
@babel-bot
Copy link
Collaborator

babel-bot commented Feb 2, 2019

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/10419/

@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9967/

@tim-mc
Copy link
Contributor Author

tim-mc commented Feb 2, 2019

@nicolo-ribaudo should this be considered a part of the babel-plugin-proposal-private-methods package?

@nicolo-ribaudo
Copy link
Member

I'd say yes, but let's also wait for @littledan 's opinion.

@littledan
Copy link

Yes, I would include it in the private methods package. (If anyone has concerns, please let me know and I can provide more detailed rationale.)

@nicolo-ribaudo nicolo-ribaudo added this to the v7.4.0 milestone Feb 11, 2019
@tim-mc tim-mc force-pushed the private-static-methods branch from f502e36 to c0cdb5d Compare February 13, 2019 01:07
@nicolo-ribaudo nicolo-ribaudo removed this from the v7.4.0 milestone Feb 18, 2019
@tim-mc tim-mc force-pushed the private-static-methods branch from c0cdb5d to 5b2b943 Compare February 22, 2019 00:16
@tim-mc
Copy link
Contributor Author

tim-mc commented Feb 22, 2019

I've incorporated changes from #9508 into my PR since it solves a problem I ran into with handling supers.

@tim-mc tim-mc force-pushed the private-static-methods branch 2 times, most recently from 060980b to 22784fe Compare February 23, 2019 23:51
@tim-mc tim-mc changed the title [WIP] Private Static Class Methods (Stage 3) Private Static Class Methods (Stage 3) Feb 23, 2019
@tim-mc
Copy link
Contributor Author

tim-mc commented Feb 23, 2019

Support for both spec and loose modes have now been added. I'll see if I can figure out any more necessary test cases, but I think the PR is ready to start reviewing at this point. cc: @nicolo-ribaudo

Keep in mind that un-merged changes from #9508 are present in this PR as well.

@nicolo-ribaudo
Copy link
Member

I have merged #9508

@tim-mc tim-mc force-pushed the private-static-methods branch from 22784fe to fcc885a Compare February 24, 2019 19:39
@tim-mc
Copy link
Contributor Author

tim-mc commented Feb 24, 2019

@nicolo-ribaudo thanks, updated.

@tim-mc tim-mc force-pushed the private-static-methods branch from a2c7da1 to eedf3b3 Compare February 24, 2019 20:02
@tim-mc tim-mc force-pushed the private-static-methods branch from eedf3b3 to 6cf450f Compare February 26, 2019 00:10
@tim-mc tim-mc force-pushed the private-static-methods branch from 87781fd to 717c7f9 Compare February 27, 2019 00:57
@nicolo-ribaudo nicolo-ribaudo added the PR: Needs Review A pull request awaiting more approvals label Mar 4, 2019
@tim-mc tim-mc force-pushed the private-static-methods branch from 717c7f9 to 1ff5e2a Compare March 6, 2019 19:04
@tim-mc tim-mc force-pushed the private-static-methods branch from 1ff5e2a to c58bad1 Compare March 7, 2019 01:13
@buildsize
Copy link

buildsize bot commented Mar 7, 2019

File name Previous Size New Size Change
babel-preset-env.js [new file] 2.04 MB
babel-preset-env.min.js [new file] 1.09 MB
babel.js [new file] 2.76 MB
babel.min.js [new file] 1.54 MB

@tim-mc
Copy link
Contributor Author

tim-mc commented Mar 7, 2019

Erm... not sure why this happened

@nicolo-ribaudo
Copy link
Member

We enabled it to avoid size regressions but it doesn't work well after rebases.

Copy link
Member

@jridgewell jridgewell left a comment

Choose a reason for hiding this comment

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

LGTM

@tim-mc
Copy link
Contributor Author

tim-mc commented Mar 12, 2019

I removed the "WIP" comment from the description. The PR is ready on my end.

@nicolo-ribaudo nicolo-ribaudo added this to the v7.4.0 milestone Mar 12, 2019
@nicolo-ribaudo nicolo-ribaudo removed the PR: Needs Review A pull request awaiting more approvals label Mar 12, 2019
@nicolo-ribaudo nicolo-ribaudo merged commit 81c130f into babel:master Mar 12, 2019
@nicolo-ribaudo
Copy link
Member

Thank you!

mAAdhaTTah added a commit to mAAdhaTTah/babel that referenced this pull request Mar 15, 2019
* master: (58 commits)
  Remove dependency on home-or-tmp package (babel#9678)
  [proposal-object-rest-spread] fix templateLiteral in extractNormalizedKeys (babel#9628)
  Partial application plugin (babel#9474)
  Private Static Class Methods (Stage 3) (babel#9446)
  gulp-uglify@3.0.2
  rollup@1.6.0
  eslint@5.15.1
  jest@24.5.0
  regexpu-core@4.5.4
  Remove input and length from state (babel#9646)
  Switch from rollup-stream to rollup and update deps (babel#9640)
  System modules - Hoist classes like other variables (babel#9639)
  fix: Don't transpile ES2018 symbol properties (babel#9650)
  Add WarningsToErrorsPlugin to webpack to avoid missing build problems on CI (babel#9647)
  Update regexpu-core dependency (babel#9642)
  Add placeholders support to @babel/types and @babel/generator (babel#9542)
  Generate plugins file
  Make babel-standalone an ESModule and enable flow (babel#9025)
  Reorganize token types and use a map for them (babel#9645)
  [TS] Allow context type annotation on getters/setters (babel#9641)
  ...
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: New Feature 🚀 A type of pull request used for our changelog categories Spec: Private Methods

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants