From 8adce524a7cea82972eb2a225fcd4ee66cfd9f83 Mon Sep 17 00:00:00 2001 From: Benjamin Lupton Date: Thu, 23 Nov 2023 12:18:39 +0800 Subject: [PATCH] v6.5.0 - boundation, changelog, version bump --- HISTORY.md | 4 + README.md | 8 +- package-lock.json | 240 +++++++++++++++++++++++----------------------- package.json | 22 ++--- source/test.ts | 22 ++--- 5 files changed, 146 insertions(+), 150 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 6c2211b..0093ad9 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ # History +## v6.5.0 2023 November 23 + +- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation) + ## v6.4.0 2023 November 21 - Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation) diff --git a/README.md b/README.md index ee0487c..2f0197e 100644 --- a/README.md +++ b/README.md @@ -71,14 +71,14 @@ Want to detect if a file is text or binary? Check out [bevry/istextorbinary](htt

Deno

``` typescript -import pkg from 'https://unpkg.com/textextensions@^6.4.0/edition-deno/index.ts' +import pkg from 'https://unpkg.com/textextensions@^6.5.0/edition-deno/index.ts' ```

Skypack

``` html ``` @@ -86,7 +86,7 @@ import pkg from 'https://unpkg.com/textextensions@^6.4.0/edition-deno/index.ts' ``` html ``` @@ -94,7 +94,7 @@ import pkg from 'https://unpkg.com/textextensions@^6.4.0/edition-deno/index.ts' ``` html ``` diff --git a/package-lock.json b/package-lock.json index 555b5c9..3294baa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,37 +1,38 @@ { "name": "textextensions", - "version": "6.4.0", + "version": "6.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "textextensions", - "version": "6.4.0", + "version": "6.5.0", "license": "Artistic-2.0", "devDependencies": { + "@bevry/fs-write": "^1.2.0", "@bevry/update-contributors": "^1.23.0", - "@types/node": "^20.9.3", + "@types/node": "^20.9.4", "@typescript-eslint/eslint-plugin": "^6.12.0", "@typescript-eslint/parser": "^6.12.0", "assert-helpers": "^11.5.0", "binaryextensions": "^6.4.0", "eslint": "^8.54.0", - "eslint-config-bevry": "^5.0.0", + "eslint-config-bevry": "^5.1.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.1", - "filedirname": "^2.10.0", "kava": "^7.3.0", "make-deno-edition": "^1.3.0", "prettier": "^3.1.0", - "projectz": "^3.2.0", + "projectz": "^3.3.0", + "promise-errback": "^1.0.0", "surge": "^0.23.1", "typedoc": "^0.25.3", "typescript": "5.2.2", - "valid-directory": "^4.4.0", - "valid-module": "^2.4.0" + "valid-directory": "^4.5.0", + "valid-module": "^2.5.0" }, "engines": { - "node": ">=10" + "node": ">=4" }, "funding": { "url": "https://bevry.me/fund" @@ -62,9 +63,9 @@ } }, "node_modules/@bevry/fs-accessible": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@bevry/fs-accessible/-/fs-accessible-2.0.0.tgz", - "integrity": "sha512-UG5j7WdxhYdmcFdMfhK+12HeBYUtHJ980ATrxDLwlGFNwPekxTya25nh8FAl8s+Ot4iB69SXkkUQBuTb28eCiQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@bevry/fs-accessible/-/fs-accessible-2.1.0.tgz", + "integrity": "sha512-0CBc/Hz2hBcv81lLAH6IxWvKKTNxWxPwDFZQqGQbLbN9suoQVUMloplFBYbtJi6TWv8iYPMHAZrVgFvMGL29GQ==", "dev": true, "dependencies": { "editions": "^6.13.0" @@ -77,15 +78,15 @@ } }, "node_modules/@bevry/fs-list": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@bevry/fs-list/-/fs-list-2.0.0.tgz", - "integrity": "sha512-95W6ha0IX1nUw9+nngjWW3oAquTTpWMQZiiNM3Ks5+u2ZuYqq4I23KbPWCZvwIOW4BJSbc9QJgw1d2KiHxV9Aw==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@bevry/fs-list/-/fs-list-2.2.0.tgz", + "integrity": "sha512-GWM52USQbAyHGQABJUcnkEakRWn6706tAOceSiM9kFaAycv4T1Y6OojB9k3MspZmS0vO+AsiisY0LvEPR9w2rA==", "dev": true, "dependencies": { - "@bevry/fs-accessible": "^2.0.0", + "@bevry/fs-accessible": "^2.1.0", "editions": "^6.13.0", - "errlop": "^7.2.0", - "version-compare": "^3.2.0" + "errlop": "^7.3.0", + "version-compare": "^3.3.0" }, "engines": { "node": ">=4" @@ -95,15 +96,15 @@ } }, "node_modules/@bevry/fs-mkdirp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@bevry/fs-mkdirp/-/fs-mkdirp-1.0.0.tgz", - "integrity": "sha512-R5mEQBFYl/Kf6DWeITih9JRJn7otLJRb/vSjCFbeWOyscgZ0VOuuv8mElR5v4x4furv8I6f3233R61KcU5xoww==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@bevry/fs-mkdirp/-/fs-mkdirp-1.2.0.tgz", + "integrity": "sha512-RKFNhX4VoK900m6w+Vy0UFaMwDdwOhHlQLdeN7h7tUgEF7TENowOoodMm3icHr+h76qfR6nLOKzq8uz2fJrMfg==", "dev": true, "dependencies": { - "@bevry/fs-accessible": "^2.0.0", + "@bevry/fs-accessible": "^2.1.0", "editions": "^6.13.0", - "errlop": "^7.2.0", - "version-compare": "^3.2.0" + "errlop": "^7.3.0", + "version-compare": "^3.3.0" }, "engines": { "node": ">=4" @@ -113,14 +114,14 @@ } }, "node_modules/@bevry/fs-read": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@bevry/fs-read/-/fs-read-1.0.0.tgz", - "integrity": "sha512-BYndXVIC//KPbsoJkcZvX3x+hTXAWST5bwaxN3wXmZqZlM0t0OP4k/psUbDr8c6WxVFPHVT4IIKguk+IoyHdsQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@bevry/fs-read/-/fs-read-1.2.0.tgz", + "integrity": "sha512-oa/PGwuLpX1Fz4Gu/JxzekDYb4NZtSekOR9KXZgQXfxbC5s+RA/6GGLPZ5kwbptz6GM3TZ53syacgzWJC9fuyg==", "dev": true, "dependencies": { - "@bevry/fs-accessible": "^2.0.0", + "@bevry/fs-accessible": "^2.1.0", "editions": "^6.13.0", - "errlop": "^7.2.0" + "errlop": "^7.3.0" }, "engines": { "node": ">=4" @@ -130,14 +131,14 @@ } }, "node_modules/@bevry/fs-unlink": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@bevry/fs-unlink/-/fs-unlink-1.0.0.tgz", - "integrity": "sha512-sN3aOeYlqvLLorQesWrtiV3pcH7ygp5eztLrh9V7Ylnm20+GNpsHuXh94lyJcCz89e7rB/ZPnUji9l4pRJgGQA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@bevry/fs-unlink/-/fs-unlink-1.2.0.tgz", + "integrity": "sha512-jKCdi+4KWJfn8IJ8bT5hF1+yUYxFJkzEZkecfMhaK+IC4YgXHuwUwh21nmAAyAcs/rGROM/UPYIA/aUjrZIA3A==", "dev": true, "dependencies": { - "@bevry/fs-accessible": "^2.0.0", + "@bevry/fs-accessible": "^2.1.0", "editions": "^6.13.0", - "errlop": "^7.2.0" + "errlop": "^7.3.0" }, "engines": { "node": ">=4" @@ -147,15 +148,15 @@ } }, "node_modules/@bevry/fs-write": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@bevry/fs-write/-/fs-write-1.0.0.tgz", - "integrity": "sha512-tX92v6YEj4E4H16kG5DYjGFvl8M9yggLyukl24VFB0mrbnawvJ8dlMIvmmj2DyafaoqFzIg8WrCRv4meEquhEA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@bevry/fs-write/-/fs-write-1.2.0.tgz", + "integrity": "sha512-UOHfn1JHCPhAiEqRDU50hkoybBqyLm4DYnAjnwboU9KpzumAYjSx7pzZWvYUXblLO9Q14+v8FtJXMKyC3m9xaw==", "dev": true, "dependencies": { - "@bevry/fs-accessible": "^2.0.0", - "@bevry/fs-mkdirp": "^1.0.0", + "@bevry/fs-accessible": "^2.1.0", + "@bevry/fs-mkdirp": "^1.1.0", "editions": "^6.13.0", - "errlop": "^7.2.0" + "errlop": "^7.3.0" }, "engines": { "node": ">=4" @@ -218,15 +219,15 @@ } }, "node_modules/@bevry/json": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@bevry/json/-/json-1.9.0.tgz", - "integrity": "sha512-22RLqQDrKapGvTJoNnunr3TQr9E2/Qr882n9X/DyoNspYgHZ5ijsF3VRAWdgr7HJhrA0ApuFfTaOVVQoSCj99g==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@bevry/json/-/json-1.10.0.tgz", + "integrity": "sha512-OdAglhqfMDeetuUqZHJe40+sKfWDSbamKimwTyv7eJu6ODWvVJNzi20V7RkgYmzeifODX0rNwCBmPn9b+j54MA==", "dev": true, "dependencies": { - "@bevry/fs-read": "^1.0.0", - "@bevry/fs-unlink": "^1.0.0", - "@bevry/fs-write": "^1.0.0", - "errlop": "^7.2.0" + "@bevry/fs-read": "^1.1.0", + "@bevry/fs-unlink": "^1.1.0", + "@bevry/fs-write": "^1.1.0", + "errlop": "^7.3.0" }, "engines": { "node": ">=10" @@ -267,9 +268,9 @@ } }, "node_modules/@bevry/valid-filename": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@bevry/valid-filename/-/valid-filename-2.1.0.tgz", - "integrity": "sha512-/8sDKmnrB6FTxkVMmNf0sCeP9jEi3HgcN1xcFxvCTyUY3WcV2R1UU/JGNz1lIYzO2wKE0OZf4qRRW9dCx/8/FQ==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@bevry/valid-filename/-/valid-filename-2.2.0.tgz", + "integrity": "sha512-x2azHSQOXvzIcVRoh1yJoRIySmJVjszqlvXwTBwgYsqCKT+pqjHJse+kRZ0oxxNww3wrsJKnHc7e2sGgkbQ++w==", "dev": true, "bin": { "valid-filename": "bin.cjs" @@ -282,9 +283,9 @@ } }, "node_modules/@bevry/wait": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@bevry/wait/-/wait-2.1.0.tgz", - "integrity": "sha512-AyDsTT08vapll+A4a42hi2mYLNfgalv3OQPrdRsabASomxYRttivvatcdxSeSjGRWlHTZJ2ygPUEkPGnas1ZBQ==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@bevry/wait/-/wait-2.2.0.tgz", + "integrity": "sha512-Fx8vLocJpsza07WvL6rxCO1KRV5T2LbBu7KqjPQLcLH6trUs/irZzYyRjcVt2xCQiR1bC0+O+2Jt9xYbfD6DOw==", "dev": true, "engines": { "node": ">=4" @@ -466,9 +467,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.9.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.3.tgz", - "integrity": "sha512-nk5wXLAXGBKfrhLB0cyHGbSqopS+nz0BUgZkUQqSHSSgdee0kssp1IAqlQOu333bW+gMNs2QREx7iynm19Abxw==", + "version": "20.9.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.4.tgz", + "integrity": "sha512-wmyg8HUhcn6ACjsn8oKYjkN/zUzQeNtMy44weTJSM6p4MMzEOuKbA3OjJ267uPCOW7Xex9dyrNTful8XTQYoDA==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -910,9 +911,9 @@ "dev": true }, "node_modules/badges": { - "version": "4.35.0", - "resolved": "https://registry.npmjs.org/badges/-/badges-4.35.0.tgz", - "integrity": "sha512-lyO25Wm/VdC+I+TxBAKkq444OMdWbszsH1WFcUthIYVVpTLHXKa1C0Vr4JCuLvsKjbBnQm6rEQMAsS34VL1ufA==", + "version": "4.36.0", + "resolved": "https://registry.npmjs.org/badges/-/badges-4.36.0.tgz", + "integrity": "sha512-ZLoUJU1pL5T1wqHTE8SN/gG2HfkULhgpgtHWr8Zh5X/P++M6DqacIcTx3PS3e/iBK5BMyxlaJZsK2P5UVL1E8w==", "dev": true, "engines": { "node": ">=10" @@ -957,9 +958,9 @@ } }, "node_modules/big-integer": { - "version": "1.6.51", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", - "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", + "version": "1.6.52", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", + "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", "dev": true, "engines": { "node": ">=0.6" @@ -1089,15 +1090,15 @@ "dev": true }, "node_modules/caterpillar": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/caterpillar/-/caterpillar-6.11.0.tgz", - "integrity": "sha512-FQn5U9LyJiPuREifDEIANecN1ydrwqYOQhUMX0VAwVhaodD71pTfHs7Yg9nOiQuIjYRUgfQyARZts7YQkOXdWw==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/caterpillar/-/caterpillar-6.12.0.tgz", + "integrity": "sha512-xsjj5cawIkWVgEbFe5p/RjA4Iwvx5TwW5++Gn6gw05Vs3Daf68flIsQfphAdgL2p7MiIxe4T0QpddTKJhyQWsQ==", "dev": true, "dependencies": { - "@bevry/ansi": "^6.2.0", + "@bevry/ansi": "^6.4.0", "editions": "^6.13.0", - "get-current-line": "^6.9.0", - "rfc-log-levels": "^3.20.0" + "get-current-line": "^6.10.0", + "rfc-log-levels": "^3.21.0" }, "engines": { "node": ">=10" @@ -1462,12 +1463,12 @@ } }, "node_modules/eslint-config-bevry": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-bevry/-/eslint-config-bevry-5.0.0.tgz", - "integrity": "sha512-wJeal93YYzRsyAoIuZmJmiQapGMK5YtAHUvJhMTqUUsPxID4lRsikPspB6S1nudafohuMGp8NohkpYeOV8heGA==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-bevry/-/eslint-config-bevry-5.1.0.tgz", + "integrity": "sha512-WI5DJGD7FsCGhN4p5lSfv+S6g0e82NYUJ8a9WcApOjNj95vJoWksRy2XOjglQ+nDbI2/BZO9OQoY0ahW+nlfFQ==", "dev": true, "dependencies": { - "version-clean": "^1.0.0" + "version-clean": "^1.1.0" }, "engines": { "node": ">=6" @@ -1836,21 +1837,6 @@ "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/filedirname": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/filedirname/-/filedirname-2.10.0.tgz", - "integrity": "sha512-TKb/ta1cqYSEpq3mypdG3+yRKgMyBLidLXkc55yRwc3qwXuVlcRdT5Jw5Ne8kqFv/LHoCUxmQ3nerQZCpIIbNA==", - "dev": true, - "dependencies": { - "get-current-line": "^6.9.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://bevry.me/fund" - } - }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -1992,9 +1978,9 @@ } }, "node_modules/get-current-line": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/get-current-line/-/get-current-line-6.9.0.tgz", - "integrity": "sha512-jFRFeABDPUMkidcVK3OOWKCAts9Gpku1+dWDLTU7mHbdp6sRB2IM9EnE3io8gJhxCHyTgANj3N5Lg9yHyAxypA==", + "version": "6.10.0", + "resolved": "https://registry.npmjs.org/get-current-line/-/get-current-line-6.10.0.tgz", + "integrity": "sha512-qxdd6md52tQVow2SQb8JwujNa4cJ5+lxdDk/fvasrxKF5PnIxydnYneARt2xmaBi/h9Op3O5jld+ymugLK6c3A==", "dev": true, "engines": { "node": ">=10" @@ -2813,9 +2799,9 @@ "dev": true }, "node_modules/native-promise-pool": { - "version": "3.23.0", - "resolved": "https://registry.npmjs.org/native-promise-pool/-/native-promise-pool-3.23.0.tgz", - "integrity": "sha512-BIW+8lLmHQJBJegsZS7vAPG++d1gAcJ8wS15r6+4h7khKEJ31QR06BZYme6kfPVBi9fOKG0L/yEwXRD+3Qs1pg==", + "version": "3.24.0", + "resolved": "https://registry.npmjs.org/native-promise-pool/-/native-promise-pool-3.24.0.tgz", + "integrity": "sha512-shG6sgHCBfr9N4xXNpJ0XjScADoljsyJS3unveurpGyt9czmYrpnK3yeh/qfVRG68EhILRfuaQHuOVzjmrgwQQ==", "dev": true, "dependencies": { "editions": "^6.13.0" @@ -2840,9 +2826,9 @@ "dev": true }, "node_modules/normalify": { - "version": "2.27.0", - "resolved": "https://registry.npmjs.org/normalify/-/normalify-2.27.0.tgz", - "integrity": "sha512-4mK4oobeHuYpv6OQiZWd/ILUi1GFaTKPxiQ9tPvI/nWIoz6i7c6/qXPopmrw7opjGTCSDHt2HwzYWrIr+mWRTg==", + "version": "2.28.0", + "resolved": "https://registry.npmjs.org/normalify/-/normalify-2.28.0.tgz", + "integrity": "sha512-AOVs8Wi1W7QlMqxsBIUK6nv9jbLZmwzt2jdR0BTHV3UAvZ+kT7n9+DSUafqxpqZxFTd4j6TWIvo2qf3bJI2ILg==", "dev": true, "engines": { "node": ">=10" @@ -3109,22 +3095,22 @@ } }, "node_modules/projectz": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/projectz/-/projectz-3.2.0.tgz", - "integrity": "sha512-vMkArRyy4BkEIzwoYY+KJWqrsEOs8Jqa0RcmwDHmQ3qjR1W249AtIHWjdomnjxqUOPJ+OfdJB/iMIXf0aGiG9w==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/projectz/-/projectz-3.3.0.tgz", + "integrity": "sha512-MmmFI2zuqlC44+CC2+pF2XvIRWomZ5dw9eiF4JpEdROW2SJfuAP/6Sm3gPup1uz4d2KQrnGYkun4j07dSgeBRg==", "dev": true, "dependencies": { - "@bevry/fs-list": "^2.0.0", - "@bevry/fs-read": "^1.0.0", - "@bevry/fs-write": "^1.0.0", - "@bevry/json": "^1.9.0", - "badges": "^4.35.0", - "caterpillar": "^6.11.0", + "@bevry/fs-list": "^2.1.0", + "@bevry/fs-read": "^1.1.0", + "@bevry/fs-write": "^1.1.0", + "@bevry/json": "^1.10.0", + "badges": "^4.36.0", + "caterpillar": "^6.12.0", "fellow": "^6.25.0", "get-cli-arg": "^8.1.0", "spdx-expression-parse": "^3.0.1", "spdx-license-list": "^6.8.0", - "typechecker": "^8.2.0" + "typechecker": "^8.5.0" }, "bin": { "projectz": "bin.cjs" @@ -3137,12 +3123,12 @@ } }, "node_modules/projectz/node_modules/get-cli-arg": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/get-cli-arg/-/get-cli-arg-8.1.0.tgz", - "integrity": "sha512-KBs2vR7bULdHR2xdfPumLJDdKuEDyB8hofOGf7HXNml/0tNqOn3oU//seyWcjCVG4YDC5du8c/Kqz47RcNhyuA==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/get-cli-arg/-/get-cli-arg-8.2.0.tgz", + "integrity": "sha512-Le9Vr2afzI7ITQLtSrsnkyL55AJwKH+/8DGqcSZIdxF0B+ZaSLeU4opXARt9jF8PXpFLaQcstXGrau1m+VgqUQ==", "dev": true, "dependencies": { - "normalify": "^2.27.0" + "normalify": "^2.28.0" }, "engines": { "node": ">=8" @@ -3151,6 +3137,18 @@ "url": "https://bevry.me/fund" } }, + "node_modules/promise-errback": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/promise-errback/-/promise-errback-1.0.0.tgz", + "integrity": "sha512-Fv6lo02BnU9faRXTxKTPSMqjD/EYe18Cwp7X9chZTRlIYWtjDlfv/Kt/vhUX4RscaZqs9VsnN/A8SFYzJXU+Ug==", + "dev": true, + "engines": { + "node": ">=4" + }, + "funding": { + "url": "https://bevry.me/fund" + } + }, "node_modules/psl": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", @@ -3286,9 +3284,9 @@ } }, "node_modules/rfc-log-levels": { - "version": "3.20.0", - "resolved": "https://registry.npmjs.org/rfc-log-levels/-/rfc-log-levels-3.20.0.tgz", - "integrity": "sha512-fRvsAhOFIp0Ez6ooDFMpMM9Ma0FymjF9gOPHjE4b32XvvLZjEyHQbLpf1cs3Hd1G7Lg2mUL4fRJD53JoPokcWA==", + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/rfc-log-levels/-/rfc-log-levels-3.21.0.tgz", + "integrity": "sha512-AP+S8PnysICJ8XD4MGM5yyODJFmQW30Xs37FGkheWGosUVlYsTnK1gYTytyVbc4CYzKai6Jmh//7C2aUErp79g==", "dev": true, "engines": { "node": ">=10" @@ -4071,12 +4069,12 @@ } }, "node_modules/valid-directory": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/valid-directory/-/valid-directory-4.4.0.tgz", - "integrity": "sha512-RdV/rBBN6MZrksSUc2Eg6lorVJRaS0aN1JM7iXQj8jVRdWQizrb10l4okxDtBdzudB2EFaDUic75W09SLrFl6w==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/valid-directory/-/valid-directory-4.5.0.tgz", + "integrity": "sha512-yeutk9gFbc233bLVOKx3evS0K7+ty11MybTHsqtjAKvrj/+v8z4Fd7ewTtT4OTPfP4WF/Ve+XDqHNxrta5dlpw==", "dev": true, "dependencies": { - "@bevry/valid-filename": "^2.1.0", + "@bevry/valid-filename": "^2.2.0", "fdir": "^6.1.1" }, "bin": { @@ -4118,12 +4116,12 @@ } }, "node_modules/valid-module": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/valid-module/-/valid-module-2.4.0.tgz", - "integrity": "sha512-pcD74YEPX1pqc7/+g3H3pq8R9U0dvwemwSZmAYDWb4seQDH5rCgx55IPm/YqEXnMsK2amYVOmBaMmdzgIUFH6Q==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/valid-module/-/valid-module-2.5.0.tgz", + "integrity": "sha512-RZSCWlCws0D4yOi6BLPdhsoQ04pF3pXK21fBM1MaOm2/79Ix7VET2IxL1GoS+3FtLj3iEoSjGar76iIbn01h2Q==", "dev": true, "dependencies": { - "errlop": "^7.2.0" + "errlop": "^7.3.0" }, "bin": { "valid-module": "bin.cjs" diff --git a/package.json b/package.json index 762c266..d2c9709 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "title": "The Definitive List of Text Extensions", "name": "textextensions", - "version": "6.4.0", + "version": "6.5.0", "description": "A package that contains an array of every single file extension there is for text files", "homepage": "https://github.com/bevry/textextensions", "license": "Artistic-2.0", @@ -87,7 +87,7 @@ "url": "https://github.com/bevry/textextensions.git" }, "engines": { - "node": ">=10" + "node": ">=4" }, "editions": [ { @@ -126,7 +126,7 @@ "require" ], "engines": { - "node": "10 || 12 || 14 || 16 || 18 || 20 || 21", + "node": "4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21", "browsers": false } }, @@ -189,26 +189,27 @@ "browser": "edition-browsers/index.js", "module": "edition-browsers/index.js", "devDependencies": { + "@bevry/fs-write": "^1.2.0", "@bevry/update-contributors": "^1.23.0", - "@types/node": "^20.9.3", + "@types/node": "^20.9.4", "@typescript-eslint/eslint-plugin": "^6.12.0", "@typescript-eslint/parser": "^6.12.0", "assert-helpers": "^11.5.0", "binaryextensions": "^6.4.0", "eslint": "^8.54.0", - "eslint-config-bevry": "^5.0.0", + "eslint-config-bevry": "^5.1.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.1", - "filedirname": "^2.10.0", "kava": "^7.3.0", "make-deno-edition": "^1.3.0", "prettier": "^3.1.0", - "projectz": "^3.2.0", + "projectz": "^3.3.0", + "promise-errback": "^1.0.0", "surge": "^0.23.1", "typedoc": "^0.25.3", "typescript": "5.2.2", - "valid-directory": "^4.4.0", - "valid-module": "^2.4.0" + "valid-directory": "^4.5.0", + "valid-module": "^2.5.0" }, "scripts": { "our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", @@ -248,10 +249,9 @@ "prettier": { "semi": false, "singleQuote": true, - "trailingComma": "all" + "trailingComma": "es5" }, "boundation": { - "nodeVersionsTestedRange": ">=10", "compiler": "typescript", "targets": [ "ES5" diff --git a/source/test.ts b/source/test.ts index 4ff81d6..ee47112 100644 --- a/source/test.ts +++ b/source/test.ts @@ -7,13 +7,10 @@ import aliens from 'binaryextensions' import { equal, deepEqual } from 'assert-helpers' import kava from 'kava' -import { writeFile } from 'fs' -import { join } from 'path' - -import filedirname from 'filedirname' -const [file, dir] = filedirname() -const listPath = join(dir, '..', 'list.json') +import writeFile from '@bevry/fs-write' +import promiseErrback from 'promise-errback' +const listPath = /* cwd */ 'list.json' const indentation = ' ' kava.suite('extensions', function (suite, test) { @@ -22,7 +19,7 @@ kava.suite('extensions', function (suite, test) { deepEqual( duplicates, [], - 'there should be no binary extensions that are present inside textextensions', + 'there should be no binary extensions that are present inside textextensions' ) }) @@ -31,7 +28,7 @@ kava.suite('extensions', function (suite, test) { equal( list.length, set.size, - 'length was the same as when duplicates were removed', + 'length was the same as when duplicates were removed' ) }) @@ -40,7 +37,7 @@ kava.suite('extensions', function (suite, test) { try { equal( JSON.stringify(list, null, indentation), - JSON.stringify(expected, null, indentation), + JSON.stringify(expected, null, indentation) ) } catch (err) { for (let i = 0; i < list.length; i++) { @@ -52,10 +49,7 @@ kava.suite('extensions', function (suite, test) { } }) - test('write the json file', function (next) { - writeFile(listPath, JSON.stringify(list), function (error) { - if (error) return next(error) - next() - }) + test('write the json file', function (done) { + promiseErrback(writeFile(listPath, JSON.stringify(list)), done) }) })