thibaudcolas / draftjs-conductor

📝✨ Little Draft.js helpers to make rich text editors “just work”
https://thibaudcolas.github.io/draftjs-conductor
MIT License
40 stars 6 forks source link

chore(deps): update prettier to v2.8.8 #315

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prettier (source) 2.8.4 -> 2.8.8 age adoption passing confidence

Release Notes

prettier/prettier (prettier) ### [`v2.8.8`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#288) [Compare Source](https://redirect.github.com/prettier/prettier/compare/2.8.7...2.8.8) This version is a republished version of v2.8.7. A bad version was accidentally published and [it can't be unpublished](https://redirect.github.com/npm/cli/issues/1686), apologies for the churn. ### [`v2.8.7`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#287) [Compare Source](https://redirect.github.com/prettier/prettier/compare/2.8.6...2.8.7) [diff](https://redirect.github.com/prettier/prettier/compare/2.8.6...2.8.7) ##### Allow multiple decorators on same getter/setter ([#​14584](https://redirect.github.com/prettier/prettier/pull/14584) by [@​fisker](https://redirect.github.com/fisker)) ```ts // Input class A { @​decorator() get foo () {} @​decorator() set foo (value) {} } // Prettier 2.8.6 SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3) 3 | get foo () {} 4 | > 5 | @​decorator() | ^^^^^^^^^^^^ 6 | set foo (value) {} 7 | } // Prettier 2.8.7 class A { @​decorator() get foo() {} @​decorator() set foo(value) {} } ``` ### [`v2.8.6`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#286) [Compare Source](https://redirect.github.com/prettier/prettier/compare/2.8.5...2.8.6) [diff](https://redirect.github.com/prettier/prettier/compare/2.8.5...2.8.6) ##### Allow decorators on private members and class expressions ([#​14548](https://redirect.github.com/prettier/prettier/pull/14548) by [@​fisker](https://redirect.github.com/fisker)) ```ts // Input class A { @​decorator() #privateMethod () {} } // Prettier 2.8.5 SyntaxError: Decorators are not valid here. (2:3) 1 | class A { > 2 | @​decorator() | ^^^^^^^^^^^^ 3 | #privateMethod () {} 4 | } // Prettier 2.8.6 class A { @​decorator() #privateMethod() {} } ``` ### [`v2.8.5`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#285) [Compare Source](https://redirect.github.com/prettier/prettier/compare/2.8.4...2.8.5) [diff](https://redirect.github.com/prettier/prettier/compare/2.8.4...2.8.5) ##### Support TypeScript 5.0 ([#​14391](https://redirect.github.com/prettier/prettier/pull/14391) by [@​fisker](https://redirect.github.com/fisker), [#​13819](https://redirect.github.com/prettier/prettier/pull/13819) by [@​fisker](https://redirect.github.com/fisker), [@​sosukesuzuki](https://redirect.github.com/sosukesuzuki)) TypeScript 5.0 introduces two new syntactic features: - `const` modifiers for type parameters - `export type *` declarations ##### Add missing parentheses for decorator ([#​14393](https://redirect.github.com/prettier/prettier/pull/14393) by [@​fisker](https://redirect.github.com/fisker)) ```jsx // Input class Person { @​(myDecoratorArray[0]) greet() {} } // Prettier 2.8.4 class Person { @​myDecoratorArray[0] greet() {} } // Prettier 2.8.5 class Person { @​(myDecoratorArray[0]) greet() {} } ``` ##### Add parentheses for `TypeofTypeAnnotation` to improve readability ([#​14458](https://redirect.github.com/prettier/prettier/pull/14458) by [@​fisker](https://redirect.github.com/fisker)) ```tsx // Input type A = (typeof node.children)[]; // Prettier 2.8.4 type A = typeof node.children[]; // Prettier 2.8.5 type A = (typeof node.children)[]; ``` ##### Support `max_line_length=off` when parsing `.editorconfig` ([#​14516](https://redirect.github.com/prettier/prettier/pull/14516) by [@​josephfrazier](https://redirect.github.com/josephfrazier)) If an .editorconfig file is in your project and it sets `max_line_length=off` for the file you're formatting, it will be interpreted as a `printWidth` of `Infinity` rather than being ignored (which previously resulted in the default `printWidth` of 80 being applied, if not overridden by Prettier-specific configuration). ```html
;
; ```

Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

github-actions[bot] commented 1 year ago
Fails
:no_entry_sign: Danger failed to run `dangerfile.js`.

Error SyntaxError

Cannot use import statement outside a module
/home/runner/work/draftjs-conductor/draftjs-conductor/node_modules/semantic-release/index.js:1
import { createRequire } from "node:module";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:76:18)
    at wrapSafe (node:internal/modules/cjs/loader:1283:20)
    at Module._compile (node:internal/modules/cjs/loader:1328:27)
    at Object.customModuleHandler (/home/runner/work/draftjs-conductor/draftjs-conductor/node_modules/danger/distribution/runner/runners/inline.js:134:28)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at _module2.default._load (/home/runner/work/draftjs-conductor/draftjs-conductor/node_modules/override-require/dist/overrideRequire.js:43:25)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (dangerfile.js:2:25)

Dangerfile

71|     const added = packageDiff.dependencies.added;
72|     const removed = packageDiff.dependencies.removed;
73| 
74|     if (added.length) {
75|       const deps = danger.utils.sentence(added.map((d) => linkDep(d)));
--------------------^
76|       message(`Adding new dependencies: ${deps}`);
77|     }
78| 
79|     if (removed.length) {

Generated by :no_entry_sign: dangerJS against 78940be3c97b1eaebcfca03914f5d0b008ae7005