Skip to content

Commit

Permalink
Release 2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Apr 21, 2020
1 parent c65606f commit 6b22977
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Tip! Don't write this stuff manually.
-->

**Prettier 2.0.4**
**Prettier 2.0.5**
[Playground link](https://prettier.io/playground/#.....)

```sh
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE:

**Environments:**

- Prettier Version: 2.0.4
- Prettier Version: 2.0.5
- Running Prettier via: <!-- CLI, Node.js API, Browser API, etc. -->
- Runtime: <!-- Node.js v6, Chrome v67, etc. -->
- Operating System: <!-- Windows, Linux, macOS, etc. -->
Expand Down
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
# 2.0.5

[diff](https://github.com/prettier/prettier/compare/2.0.4...2.0.5)

#### Less: Fix formatting of `:extend` ([#7984](https://github.com/prettier/prettier/pull/7984) by [@fisker](https://github.com/fisker))

<!-- prettier-ignore -->
```less
// Input
.class {
&:extend(.some-class .some-other-class .some-very-loooooooooooooong-class all);
}

// Prettier 2.0.4
.class {
&:extend(
.some-class .some-other-class .some-very-loooooooooooooong-class all
);
}

// Prettier 2.0.4 (Second format)
.class {
&: extend(
.some-class .some-other-class .some-very-loooooooooooooong-class all
);
}

// Prettier 2.0.5
.class {
&:extend(
.some-class .some-other-class .some-very-loooooooooooooong-class all
);
}
```

#### Editor integration: Use [`resolve`](https://www.npmjs.com/package/resolve) if builtin `require.resolve` is overridden ([#8072](https://github.com/prettier/prettier/pull/8072) by [@fisker](https://github.com/fisker))

This fixes issues that the users of Atom and WebStorm faced with 2.0.4.

Prettier now switches to using the `resolve` module for resolving configuration files and plugins if it detects that `require.resolve` isn't Node's builtin function (doesn't support the second argument), which happens in environments like editor extensions. To force the fallback, set the `PRETTIER_FALLBACK_RESOLVE` environment variable to `true`.

# 2.0.4

[diff](https://github.com/prettier/prettier/compare/2.0.3...2.0.4)
Expand Down
30 changes: 0 additions & 30 deletions changelog_unreleased/less/pr-7984.md

This file was deleted.

12 changes: 6 additions & 6 deletions docs/browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ See [Usage](#usage) below for examples.
### Global

```html
<script src="https://unpkg.com/prettier@2.0.4/standalone.js"></script>
<script src="https://unpkg.com/prettier@2.0.4/parser-graphql.js"></script>
<script src="https://unpkg.com/prettier@2.0.5/standalone.js"></script>
<script src="https://unpkg.com/prettier@2.0.5/parser-graphql.js"></script>
<script>
prettier.format("query { }", {
parser: "graphql",
Expand All @@ -42,8 +42,8 @@ prettier.format("query { }", {

```js
define([
"https://unpkg.com/prettier@2.0.4/standalone.js",
"https://unpkg.com/prettier@2.0.4/parser-graphql.js",
"https://unpkg.com/prettier@2.0.5/standalone.js",
"https://unpkg.com/prettier@2.0.5/parser-graphql.js",
], (prettier, ...plugins) => {
prettier.format("query { }", { parser: "graphql", plugins });
});
Expand All @@ -62,7 +62,7 @@ This syntax doesn't necessarily work in the browser, but it can be used when bun
### Worker

```js
importScripts("https://unpkg.com/prettier@2.0.4/standalone.js");
importScripts("https://unpkg.com/prettier@2.0.4/parser-graphql.js");
importScripts("https://unpkg.com/prettier@2.0.5/standalone.js");
importScripts("https://unpkg.com/prettier@2.0.5/parser-graphql.js");
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
```
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ npm install --global prettier
If you use `npx` to run Prettier, the version should be pinned like this:

```bash
npx prettier@2.0.4 . --write
npx prettier@2.0.5 . --write
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "2.1.0-dev",
"version": "2.0.5",
"description": "Prettier is an opinionated code formatter",
"bin": "./bin/prettier.js",
"repository": "prettier/prettier",
Expand Down
12 changes: 6 additions & 6 deletions website/versioned_docs/version-stable/browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ See [Usage](#usage) below for examples.
### Global

```html
<script src="https://unpkg.com/prettier@2.0.4/standalone.js"></script>
<script src="https://unpkg.com/prettier@2.0.4/parser-graphql.js"></script>
<script src="https://unpkg.com/prettier@2.0.5/standalone.js"></script>
<script src="https://unpkg.com/prettier@2.0.5/parser-graphql.js"></script>
<script>
prettier.format("query { }", {
parser: "graphql",
Expand All @@ -43,8 +43,8 @@ prettier.format("query { }", {

```js
define([
"https://unpkg.com/prettier@2.0.4/standalone.js",
"https://unpkg.com/prettier@2.0.4/parser-graphql.js",
"https://unpkg.com/prettier@2.0.5/standalone.js",
"https://unpkg.com/prettier@2.0.5/parser-graphql.js",
], (prettier, ...plugins) => {
prettier.format("query { }", { parser: "graphql", plugins });
});
Expand All @@ -63,7 +63,7 @@ This syntax doesn't necessarily work in the browser, but it can be used when bun
### Worker

```js
importScripts("https://unpkg.com/prettier@2.0.4/standalone.js");
importScripts("https://unpkg.com/prettier@2.0.4/parser-graphql.js");
importScripts("https://unpkg.com/prettier@2.0.5/standalone.js");
importScripts("https://unpkg.com/prettier@2.0.5/parser-graphql.js");
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
```
2 changes: 1 addition & 1 deletion website/versioned_docs/version-stable/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ npm install --global prettier
If you use `npx` to run Prettier, the version should be pinned like this:

```bash
npx prettier@2.0.4 . --write
npx prettier@2.0.5 . --write
```

0 comments on commit 6b22977

Please sign in to comment.