diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 10bb5ee..d588995 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -14,8 +14,8 @@ jobs:
- 16
- 14
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-node@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
diff --git a/examples/rainbow.js b/examples/rainbow.js
index cfc4cef..5b2b1d2 100644
--- a/examples/rainbow.js
+++ b/examples/rainbow.js
@@ -10,7 +10,7 @@ function rainbow(string, offset) {
return string;
}
- const hueStep = 360 / string.replace(ignoreChars, '').length;
+ const hueStep = 360 / string.replaceAll(ignoreChars, '').length;
let hue = offset % 360;
const characters = [];
diff --git a/package.json b/package.json
index 3c50010..4eb7f11 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
}
},
"types": "./source/index.d.ts",
+ "sideEffects": false,
"engines": {
"node": "^12.17.0 || ^14.13 || >=16.0.0"
},
@@ -58,10 +59,9 @@
"log-update": "^5.0.0",
"matcha": "^0.7.0",
"tsd": "^0.19.0",
- "xo": "^0.53.0",
+ "xo": "^0.57.0",
"yoctodelay": "^2.0.0"
},
- "sideEffects": false,
"xo": {
"rules": {
"unicorn/prefer-string-slice": "off",
diff --git a/readme.md b/readme.md
index d52688b..6aa0119 100644
--- a/readme.md
+++ b/readme.md
@@ -15,48 +15,6 @@

-
-
----
-
-
-
- - Sindre Sorhus' open source work is supported by the community on GitHub Sponsors - -
- Special thanks to: -
-