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

1.7.0 Release (formerly 1.6.2) #2804

Closed
vjeux opened this issue Sep 13, 2017 · 44 comments
Closed

1.7.0 Release (formerly 1.6.2) #2804

vjeux opened this issue Sep 13, 2017 · 44 comments
Assignees
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:meta Issues about the status of Prettier, or anything else about Prettier itself

Comments

@vjeux
Copy link
Contributor

vjeux commented Sep 13, 2017

I'm pretty busy with work but we should release 1.6.2 with what we have:

  • JSX tweaks
  • pragma
  • TypeScript edge cases
  • CSS cases

Is anyone interested in writing the changelog and doing the release?

@vjeux vjeux added the help wanted We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue! label Sep 13, 2017
@kentor
Copy link

kentor commented Sep 13, 2017

is this going in? #2722

@vjeux
Copy link
Contributor Author

vjeux commented Sep 13, 2017

@kentor yeah, everything being merged in is going in.

@suchipi
Copy link
Member

suchipi commented Sep 13, 2017

I can do it this evening

@vjeux
Copy link
Contributor Author

vjeux commented Sep 13, 2017

@suchipi awesome!

@suchipi
Copy link
Member

suchipi commented Sep 13, 2017

I'll need to be a collaborator on npm in order to do the actual release. So I can either just do the changelog, or you if you want to make me a collaborator, I can do the release, too.

@existentialism
Copy link
Collaborator

existentialism commented Sep 13, 2017

I can help with the changelog too, @suchipi if you need a hand!

@vjeux
Copy link
Contributor Author

vjeux commented Sep 13, 2017

You're been added :) https://www.npmjs.com/package/prettier/access

@suchipi
Copy link
Member

suchipi commented Sep 13, 2017

Cool :)

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

Draft here: https://github.com/prettier/prettier/releases/edit/untagged-deb05c14fc852c73bd39

Any feedback before release?

Also, when running build, I get:

...
How to test against dist:
  1) yarn test --prod

How to publish:
  1) IMPORTANT!!! Go to dist/
  2) npm publish
✨  Done in 61.70s.

But yarn test --prod doesn't work:

$ yarn test --prod
yarn test v1.0.1
$ jest "--prod"
/Users/suchipi/Code/prettier/node_modules/jest-util/build/validateCLIOptions.js:62
    throw createCLIValidationError(unrecognizedOptions, allowedOptions);
    ^

● Unrecognized CLI Parameter:

  Unrecognized option "prod".

  CLI Options Documentation:
  http://facebook.github.io/jest/docs/cli.html

error Command failed with exit code 1.

Is there a new way to run the tests against dist/? (They pass when run normally).

@vjeux
Copy link
Contributor Author

vjeux commented Sep 14, 2017

Just to make sure, did you run yarn to update all the dependencies?

@azz
Copy link
Member

azz commented Sep 14, 2017

I think yarn v1 behaves differently, try yarn --prod test

With yarn v1 you don't need -- to separate arguments, so the --prod is being passed to jest instead.

@existentialism
Copy link
Collaborator

existentialism commented Sep 14, 2017

Release notes LGTM, though do we need to list every issue and pull requests?

I can just update #2811 to link to it instead.

@azz
Copy link
Member

azz commented Sep 14, 2017

Maybe drop the big prettier logo for a "patch" release? Otherwise lgtm

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

I was thinking... since we're technically adding features, should it be 1.7.0?

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

Also sorry about the duplicated work @existentialism 🙏

@existentialism
Copy link
Collaborator

existentialism commented Sep 14, 2017

@suchipi Oh, no worries at all! I figured we were doing simpler release notes for this one like the previous patch releases, but a minor makes sense.

@vjeux
Copy link
Contributor Author

vjeux commented Sep 14, 2017

Yeah, there's a bunch of things in the release so would make more sense to be 1.7. Could you add three more highlights:

  • JSX changes (the main reason why we're doing an early release)
  • TypeScript bug fix that's affecting people
  • We now lowercase all the things in CSS

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

Just to make sure, did you run yarn to update all the dependencies? - @vjeux

Yeah, I blew away my package.json and reran yarn install to be sure

I think yarn v1 behaves differently, try yarn --prod test

With yarn v1 you don't need -- to separate arguments, so the --prod is being passed to jest instead. - @azz

yarn --prod test appears to do a yarn install... 😅

I can just downgrade my local yarn for now

@vjeux
Copy link
Contributor Author

vjeux commented Sep 14, 2017

Would be nice to do the actual release tomorrow morning, so we can be available if anything goes wrong. I don't want to stress out about things that could break during the night :p

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

Updated draft: https://github.com/prettier/prettier/releases/edit/untagged-268c192abfe88cff3597

@vjeux I wasn't sure which typescript issue you were referring to, but I assumed it was the never type one

@suchipi suchipi changed the title 1.6.2 Release 1.7.0 Release (formerly 1.6.2) Sep 14, 2017
@vjeux
Copy link
Contributor Author

vjeux commented Sep 14, 2017

Awesome, looks good to me :)

@existentialism
Copy link
Collaborator

existentialism commented Sep 14, 2017

FWIW, I know the declare enum's been asked for a bit as well.

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

I'll give it a shout-out

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

@mitermayer
Copy link
Member

@suchipi can you also highlight --config-precedence since this is an important update for editor integrations

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

@lydell
Copy link
Member

lydell commented Sep 14, 2017

Regarding CSS letter case: In display: BLOCK;, "BLOCK" will remain unchanged. DISPLAY: block; will turn into display: block;, though.

@azz
Copy link
Member

azz commented Sep 14, 2017

I've just moved a couple of bits around to look more like previous release notes. https://github.com/prettier/prettier/releases/edit/untagged-0a9ddfefa7ed61f6c674

@vjeux
Copy link
Contributor Author

vjeux commented Sep 14, 2017

Whenever you are ready :)

@lydell
Copy link
Member

lydell commented Sep 14, 2017

Now that we went from 1.6.2 (patch release) to 1.7.0 (minor release), I think it is an as good as time as any to merge #2767 and release it in 1.7.0. Thoughts?

I've corrected the CSS case example, btw: https://github.com/prettier/prettier/releases/edit/untagged-ec958688c7b4247a1771

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

Published! :) https://github.com/prettier/prettier/releases/tag/1.7.0

@suchipi suchipi closed this as completed Sep 14, 2017
@vjeux
Copy link
Contributor Author

vjeux commented Sep 14, 2017

@suchipi can you tweet about it so that I can retweet?

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

will do

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

Thanks for the help in putting the release together, everybody 😊

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

Looks like playground is broken? https://prettier.io/playground/
"TypeError: process.version is undefined"

@vjeux
Copy link
Contributor Author

vjeux commented Sep 14, 2017

Same issue here. cc @lydell

@lydell
Copy link
Member

lydell commented Sep 14, 2017

@suchipi @vjeux Seems to be a problem with the new version when built for the web, not the new Playground features. I can look into it anyway, though.

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

Which part of the process deploys the website, by the way? I ran yarn build, made and pushed a 1.7.0 commit on master (which had website changes from running yarn build), then went into dist and ran npm publish. I didn't see any pre or post publish hooks, so I'm guessing we have a github hook setup that publishes github pages when master changes?

@vjeux
Copy link
Contributor Author

vjeux commented Sep 14, 2017

yarn build updates the website/ folder.

@lydell
Copy link
Member

lydell commented Sep 14, 2017

@prettier-bot updates the website.

@lydell
Copy link
Member

lydell commented Sep 14, 2017

It was the update of cosmiconfig that broke stuff, btw. It uses please-upgrade-node which looks at process.version, which we hadn't shimmed before.

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

Thanks for figuring it out

@suchipi
Copy link
Member

suchipi commented Sep 14, 2017

Looks good now; thanks @lydell!

@azz azz added type:meta Issues about the status of Prettier, or anything else about Prettier itself and removed help wanted We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue! labels Oct 29, 2017
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jul 6, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:meta Issues about the status of Prettier, or anything else about Prettier itself
Projects
None yet
Development

No branches or pull requests

7 participants