From 3e515a23ec7329fa9eb3df1ca54145b4e1a6dddb Mon Sep 17 00:00:00 2001 From: Titus Date: Thu, 21 Oct 2021 14:05:42 +0200 Subject: [PATCH 01/10] Improve wording --- readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/readme.md b/readme.md index f2012ee..a121244 100644 --- a/readme.md +++ b/readme.md @@ -13,8 +13,7 @@ [![First timers friendly][first-timers-badge]][first-timers] Whether your own or someone else’s writing, **alex** helps you find gender -favoring, polarizing, race related, religion inconsiderate, or other **unequal** -phrasing in text. +favoring, polarizing, race related, or other **unequal** phrasing in text. For example, when `We’ve confirmed his identity` is given, **alex** will warn you and suggest using `their` instead of `his`. From 05841968221f17f7edf53941d2954837070824c2 Mon Sep 17 00:00:00 2001 From: Titus Date: Sat, 18 Jun 2022 17:36:36 +0200 Subject: [PATCH 02/10] Remove reference to Atom --- readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/readme.md b/readme.md index a121244..18c44cb 100644 --- a/readme.md +++ b/readme.md @@ -100,7 +100,6 @@ like][literals] are not warned about. ## Integrations -* Atom — [`get-alex/atom-linter-alex`](https://github.com/get-alex/atom-linter-alex) * Sublime — [`sindresorhus/SublimeLinter-contrib-alex`](https://github.com/sindresorhus/SublimeLinter-contrib-alex) * Gulp — [`dustinspecker/gulp-alex`](https://github.com/dustinspecker/gulp-alex) * Slack — [`keoghpe/alex-slack`](https://github.com/keoghpe/alex-slack) From 42606f7e74562a1e8e39722c4f68c8dd2b4688a6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 18 Jun 2022 23:08:04 +0200 Subject: [PATCH 03/10] Update dev-dependencies --- cli.js | 3 +-- package.json | 2 +- test/api.js | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cli.js b/cli.js index 214946b..3c1b59c 100755 --- a/cli.js +++ b/cli.js @@ -23,7 +23,7 @@ import {filter} from './filter.js' /** @type {import('type-fest').PackageJson} */ const pack = JSON.parse( - String(fs.readFileSync(new URL('./package.json', import.meta.url))) + String(fs.readFileSync(new URL('package.json', import.meta.url))) ) const textExtensions = [ @@ -147,7 +147,6 @@ function transform(options = {}) { ] if (cli.flags.html) { - // @ts-expect-error: types are having a hard time for bridges. plugins = [rehypeParse, [rehypeRetext, unified().use({plugins})]] } else if (cli.flags.mdx) { // @ts-expect-error: types are having a hard time for bridges. diff --git a/package.json b/package.json index 327f0bd..e479a38 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,7 @@ "type-fest": "^2.0.0", "typescript": "^4.0.0", "vfile-reporter-json": "^3.0.0", - "xo": "^0.45.0" + "xo": "^0.50.0" }, "scripts": { "build": "rimraf \"test/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage", diff --git a/test/api.js b/test/api.js index e3cfbb5..b09e471 100644 --- a/test/api.js +++ b/test/api.js @@ -4,9 +4,9 @@ import test from 'tape' import alex, {markdown, mdx, text, html} from '../index.js' const threeHtml = fs.readFileSync( - new URL('./fixtures/three.html', import.meta.url) + new URL('fixtures/three.html', import.meta.url) ) -const fourMdx = fs.readFileSync(new URL('./fixtures/four.mdx', import.meta.url)) +const fourMdx = fs.readFileSync(new URL('fixtures/four.mdx', import.meta.url)) // Tests. Note that these are small because alex is in fact // just a collection of well-tested modules. From 3b55031316875b569a53bdc7729e2486de8b3b5b Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 18 Jun 2022 23:08:50 +0200 Subject: [PATCH 04/10] Remove support for Node 12 --- .github/workflows/main.yml | 4 ++-- readme.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a84287e..522556d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,5 +17,5 @@ jobs: strategy: matrix: node: - - lts/erbium - - '*' + - lts/fermium + - lts/gallium diff --git a/readme.md b/readme.md index 18c44cb..9a4091a 100644 --- a/readme.md +++ b/readme.md @@ -317,7 +317,7 @@ See `$ alex --help` for more information. ## API This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c): -Node 12+ is needed to use it and it must be `import`ed instead of `require`d. +Node 14+ is needed to use it and it must be `import`ed instead of `require`d. [npm][]: From 34360a3f8de93323cb6f2db1bc066003fe1db72e Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 18 Jun 2022 23:10:56 +0200 Subject: [PATCH 05/10] Update `unified-engine` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e479a38..86657cb 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "retext-profanities": "~7.1.0", "unified": "^10.0.0", "unified-diff": "^4.0.0", - "unified-engine": "^9.0.0", + "unified-engine": "^10.0.0", "update-notifier": "^5.0.0", "vfile": "^5.0.0", "vfile-reporter": "^7.0.0", From 1b4c1be7991b30502cd56fb1d4769708df6853a5 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 18 Jun 2022 23:13:00 +0200 Subject: [PATCH 06/10] Update `retext-equality`, `retext-profanities` Closes GH-329. --- package.json | 4 ++-- test/api.js | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 86657cb..5e5f6cf 100644 --- a/package.json +++ b/package.json @@ -79,8 +79,8 @@ "remark-parse": "^10.0.0", "remark-retext": "^5.0.0", "retext-english": "^4.0.0", - "retext-equality": "~6.3.0", - "retext-profanities": "~7.1.0", + "retext-equality": "~6.6.0", + "retext-profanities": "~7.2.0", "unified": "^10.0.0", "unified-diff": "^4.0.0", "unified-engine": "^10.0.0", diff --git a/test/api.js b/test/api.js index b09e471..8e0c362 100644 --- a/test/api.js +++ b/test/api.js @@ -24,9 +24,10 @@ test('alex()', function (t) { ].join('\n') ).messages.map(String), [ - '1:44-1:50: `master` may be insensitive, use `primary`, `hub`, `reference` instead', + '1:44-1:50: `master` may be insensitive, use `primary`, `lead`, `hub`, `reference` instead', + '2:5-2:11: `slaves` may be insensitive, use `secondaries`, `workers`, `replicas`, `nodes` instead', '2:5-2:11: Don’t use `slaves`, it’s profane', - '2:37-2:43: `master` may be insensitive, use `primary`, `hub`, `reference` instead', + '2:37-2:43: `master` may be insensitive, use `primary`, `lead`, `hub`, `reference` instead', '3:1-3:3: `he` may be insensitive, use `they`, `it` instead', '3:11-3:18: `cripple` may be insensitive, use `person with a limp` instead', '5:36-5:40: Be careful with `butt`, it’s profane in some cases' @@ -131,9 +132,10 @@ test('alex()', function (t) { ).messages.map(String), [ '1:6-1:15: `boogeyman` may be insensitive, use `boogeymonster` instead', - '1:44-1:50: `master` may be insensitive, use `primary`, `hub`, `reference` instead', + '1:44-1:50: `master` may be insensitive, use `primary`, `lead`, `hub`, `reference` instead', + '2:5-2:11: `slaves` may be insensitive, use `secondaries`, `workers`, `replicas`, `nodes` instead', '2:5-2:11: Don’t use `slaves`, it’s profane', - '2:37-2:43: `master` may be insensitive, use `primary`, `hub`, `reference` instead', + '2:37-2:43: `master` may be insensitive, use `primary`, `lead`, `hub`, `reference` instead', '3:1-3:3: `he` may be insensitive, use `they`, `it` instead', '3:11-3:18: `cripple` may be insensitive, use `person with a limp` instead', '5:36-5:40: Be careful with `butt`, it’s profane in some cases' From ad49400f30ab57ac9d80fdd87ee97aeb26a83a8e Mon Sep 17 00:00:00 2001 From: Julien Wajsberg Date: Fri, 4 Nov 2022 10:09:18 +0100 Subject: [PATCH 07/10] Update `update-notifier` Closes GH-334. Reviewed-by: Titus Wormer Co-authored-by: Titus Wormer --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5e5f6cf..e4cf730 100644 --- a/package.json +++ b/package.json @@ -84,14 +84,14 @@ "unified": "^10.0.0", "unified-diff": "^4.0.0", "unified-engine": "^10.0.0", - "update-notifier": "^5.0.0", + "update-notifier": "^6.0.0", "vfile": "^5.0.0", "vfile-reporter": "^7.0.0", "vfile-sort": "^3.0.0" }, "devDependencies": { "@types/tape": "^4.0.0", - "@types/update-notifier": "^5.0.0", + "@types/update-notifier": "^6.0.0", "c8": "^7.10.0", "prettier": "^2.0.0", "remark-cli": "^10.0.0", From 5cf932aa15696de4222f60be724ee9b03669d866 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 4 Nov 2022 10:12:09 +0100 Subject: [PATCH 08/10] Update `meow` --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e4cf730..8204ca6 100644 --- a/package.json +++ b/package.json @@ -69,12 +69,12 @@ "dependencies": { "@types/mdast": "^3.0.0", "@types/nlcst": "^1.0.0", - "meow": "^10.0.0", + "meow": "^11.0.0", "rehype-parse": "^8.0.0", "rehype-retext": "^3.0.0", "remark-frontmatter": "^4.0.0", "remark-gfm": "^3.0.0", - "remark-mdx": "2.0.0-rc.1", + "remark-mdx": "2.0.0", "remark-message-control": "^7.0.0", "remark-parse": "^10.0.0", "remark-retext": "^5.0.0", From dcce1cc6aebecf8180549effb4a0bd8819e623b7 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 4 Nov 2022 10:13:13 +0100 Subject: [PATCH 09/10] Update dev-dependencies --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8204ca6..fb028d5 100644 --- a/package.json +++ b/package.json @@ -94,15 +94,15 @@ "@types/update-notifier": "^6.0.0", "c8": "^7.10.0", "prettier": "^2.0.0", - "remark-cli": "^10.0.0", + "remark-cli": "^11.0.0", "remark-preset-wooorm": "^9.0.0", "rimraf": "^3.0.0", "tape": "^5.0.0", "type-coverage": "^2.0.0", - "type-fest": "^2.0.0", + "type-fest": "^3.0.0", "typescript": "^4.0.0", "vfile-reporter-json": "^3.0.0", - "xo": "^0.50.0" + "xo": "^0.52.0" }, "scripts": { "build": "rimraf \"test/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage", From 9f342481267bdb8092b2ae8f3b205ffd06c5f990 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 4 Nov 2022 10:16:39 +0100 Subject: [PATCH 10/10] 11.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fb028d5..92c2625 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "alex", - "version": "10.0.0", + "version": "11.0.0", "description": "Catch insensitive, inconsiderate writing", "license": "MIT", "repository": "https://github.com/get-alex/alex",