Skip to content

[7.0] Remove quotes option - #5154

Merged
hzoo merged 2 commits into
babel:7.0from
mswiecicki:remove_quotes_option
Jan 31, 2017
Merged

hzoo merged 2 commits into
babel:7.0from
mswiecicki:remove_quotes_option

Conversation

@mswiecicki

Copy link
Copy Markdown
Contributor
Q A
Patch: Bug Fix?
Major: Breaking Change? hazoo said so in the issue
Minor: New Feature?
Deprecations? quotes option in babel-generator doesn't exist anymore, so yes
Spec Compliancy? not sure... ?
Tests Added/Pass? none added but all pass
Fixed Tickets closes #5139 and #4803
License MIT
Doc PR
Dependency Changes none

All details in commit messages (probably more than is really needed)

@existentialism existentialism added the PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release label Jan 18, 2017
@existentialism existentialism added this to the Babel 7 milestone Jan 18, 2017
@babel-bot

Copy link
Copy Markdown
Collaborator

Hey @4rlekin! It looks like one or more of your builds have failed. I've copied the relevant info below to save you some time.

@codecov-io

codecov-io commented Jan 19, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #5154 into 7.0 will increase coverage by -0.01%.

@@            Coverage Diff             @@
##              7.0    #5154      +/-   ##
==========================================
- Coverage   89.61%   89.61%   -0.01%     
==========================================
  Files         200      200              
  Lines        9753     9752       -1     
  Branches     2597     2596       -1     
==========================================
- Hits         8740     8739       -1     
  Misses       1013     1013
Impacted Files Coverage Δ
packages/babel-generator/src/index.js 90.56% <ø> (-0.18%) ❌

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e530e3c...2e5975c. Read the comment docs.

@hzoo hzoo changed the title Remove quotes option [7.0] Remove quotes option Jan 20, 2017
compact: opts.compact,
minified: opts.minified,
concise: opts.concise,
quotes: opts.quotes || findCommonStringDelimiter(code, tokens),

@hzoo hzoo Jan 20, 2017 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we want to keep findCommonStringDelimiter? If we do we then this pr can just be removing opts.quotes rather than defaulting to double.

I wasn't sure at the time

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, I guess we never really decided if we wanted to default to double or infer. The more I think about it, I think infer is better option?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@4rlekin Can we just remove the top level quotes option? Basically I think we can just do quotes: findCommonStringDelimiter(code, tokens), so that it still runs findCommonStringDelimiter. Basically we just need to not allow the user to specify the quotes and rather we infer it.

@mswiecicki

Copy link
Copy Markdown
Contributor Author

Provided Travis build will go without issue it should be all good now, sorry for the delay.

@babel-bot

Copy link
Copy Markdown
Collaborator

Hey @4rlekin! It looks like one or more of your builds have failed. I've copied the relevant info below to save you some time.

@mswiecicki

Copy link
Copy Markdown
Contributor Author

Hmm... i swear to god i re-generated those exact tests, dunno why it fails, could someone check this out ?
Or explain what happened ? When i ran tests it was all good...

@hzoo

hzoo commented Jan 31, 2017

Copy link
Copy Markdown
Member

yeah I'l check out

@hzoo

hzoo commented Jan 31, 2017

Copy link
Copy Markdown
Member

I think you can just remove the last commit and it should be good because tests are the same as before (with the new change of just removing the option)

@hzoo
hzoo merged commit ba0df23 into babel:7.0 Jan 31, 2017
@hzoo

hzoo commented Jan 31, 2017

Copy link
Copy Markdown
Member

Thanks @4rlekin I just rebased and removed the test fixture changes since they weren't needed anymore

hulkish added a commit to hulkish/babel that referenced this pull request May 2, 2017
* 7.0: (37 commits)
  resolved conflicts
  [7.0] Switch decorators-legacy to decorators in the Stage 1 Preset (babel#5318) (babel#5319)
  [7.0] Replacing current decorators with decorators-legacy (babel#5290)
  Add Node 7 to CI (babel#5165)
  [7.0] remove standalone babel package (babel#5293)
  .gitignore for test [skip ci]
  update yarn
  use [email protected] (babel#5254)
  [7.0] Run Babel's unittests in a custom sandbox (take 2). (babel#5263)
  [7.0] Remove quotes option (babel#5154)
  [7.0] List babylon plugins instead of * in babel-generator tests (babel#5231)
  Remove babel-runtime from packages' dependencies (babel#5218)
  Bump `detect-indent`. (babel#5226)
  [7.0] Add legacy-decorators to stage-1. Fixes babel#5220 (babel#5225)
  [7.0] Use lerna's --independent mode + changes (fixes babel#5221)
  [7.0] Bump `home-or-tmp` for `babel-register`. (babel#5189)
  [7.0] Added yarn.lock (babel#5175)
  [7.0] Remove old babel-runtime code (babel#5187)
  [7.0] Drop support for Node 5 (babel#5186)
  Remove path-is-absolute in favor of builtin path.isAbsolute (babel#5179)
  ...
@lock lock Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 6, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Oct 6, 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: Breaking Change 💥 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants