Skip to content

Commit 97d073b

Browse files
Update deps (#1319)
* update root deps * upgrade vitest * move folder * upgrade zod * fix build script * upgrade vitest browser * upgrade vite-plugin-node-polyfills * missed some tshy * upgrade playwright * upgrade png types * upgrade rollup deps * define engines * correct node types * ugrade docs deps * update pnpm * upgrade eslint
1 parent ba9de4d commit 97d073b

282 files changed

Lines changed: 2154 additions & 2954 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.all-contributorsrc

Lines changed: 149 additions & 455 deletions
Large diffs are not rendered by default.

.ncurc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"reject": [
3+
// These deps are esm only
4+
"pixelmatch",
5+
"mime",
6+
"@types/mime",
7+
"file-type",
8+
// We support node 18 and above
9+
"@types/node"
10+
]
11+
}

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"prettier.prettierPath": "./node_modules/prettier/index.cjs",
3-
}
2+
"prettier.prettierPath": "./node_modules/prettier/index.cjs"
3+
}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#### Make brightness function behave like other implementations ([#1312](https://github.com/jimp-dev/jimp/pull/1312))
66

7-
This PR changes the `brightness` function to behave like the css brightness function and other implementations. Previously it was doing something odd. Instead of multiplying the color channel by the multiplier value, it multiplied against the inversion of the current color.
7+
This PR changes the `brightness` function to behave like the css brightness function and other implementations. Previously it was doing something odd. Instead of multiplying the color channel by the multiplier value, it multiplied against the inversion of the current color.
88

99
In the current version a value of `1` won't change the colors at all. Values above 1 will brighten the colors, values below 1 will darken the colors.
1010

lerna.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
"npmClient": "pnpm",
44
"registry": "https://registry.npmjs.org/",
55
"version": "1.1.2",
6-
"packages": [
7-
"packages/*",
8-
"plugins/*"
9-
]
10-
}
6+
"packages": ["packages/*", "plugins/*"]
7+
}

package.json

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
2+
"name": "jimp-monorepo",
23
"private": true,
4+
"packageManager": "pnpm@9.9.0",
35
"description": "The jimp monorepo.",
46
"repository": "jimp-dev/jimp",
5-
"author": "Andrew Lisowski <lisowski54@gmail.com>",
67
"engines": {
78
"node": ">=18"
89
},
10+
"author": "Andrew Lisowski <lisowski54@gmail.com>",
911
"scripts": {
10-
"build": "turbo run build build:browser --filter=!docs",
12+
"build": "turbo run build build:browser --filter=!@jimp/docs",
1113
"dev": "turbo run dev",
1214
"lint": "turbo run lint",
1315
"test": "turbo run test -- --watch=false",
@@ -16,24 +18,19 @@
1618
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
1719
"release": "pnpm build && auto shipit",
1820
"generate-package": "turbo gen package",
19-
"generate-plugin": "turbo gen plugin"
21+
"generate-plugin": "turbo gen plugin",
22+
"check-updates": "ncu --packageFile '{,*/**/}package.json'"
2023
},
2124
"devDependencies": {
2225
"@auto-it/all-contributors": "^11.2.1",
2326
"@auto-it/first-time-contributor": "^11.2.1",
2427
"@auto-it/released": "^11.2.1",
2528
"@jimp/config-eslint": "workspace:*",
2629
"@jimp/config-typescript": "workspace:*",
27-
"@turbo/gen": "^1.12.5",
28-
"any-base": "^1.1.0",
30+
"@turbo/gen": "^2.1.1",
2931
"auto": "^11.2.1",
30-
"prettier": "^3.2.5",
31-
"turbo": "^1.13.0"
32-
},
33-
"packageManager": "pnpm@8.9.0",
34-
"publishConfig": {
35-
"registry": "https://registry.npmjs.org/",
36-
"access": "public"
37-
},
38-
"sideEffects": false
32+
"npm-check-updates": "^17.1.1",
33+
"prettier": "^3.3.3",
34+
"turbo": "^2.1.1"
35+
}
3936
}

packages/config-eslint/base.js

Lines changed: 24 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,28 @@
1-
const { resolve } = require("node:path");
1+
import js from "@eslint/js";
2+
import eslintConfigPrettier from "eslint-config-prettier";
3+
import turboPlugin from "eslint-plugin-turbo";
4+
import tseslint from "typescript-eslint";
25

3-
const project = resolve(process.cwd(), "tsconfig.json");
4-
5-
/** @type {import("eslint").Linter.Config} */
6-
module.exports = {
7-
extends: [
8-
"eslint:recommended",
9-
"prettier",
10-
"eslint-config-turbo",
11-
"plugin:@typescript-eslint/recommended",
12-
],
13-
plugins: ["only-warn"],
14-
globals: {
15-
React: true,
16-
JSX: true,
17-
},
18-
env: {
19-
node: true,
6+
export default [
7+
js.configs.recommended,
8+
eslintConfigPrettier,
9+
...tseslint.configs.recommended,
10+
{
11+
ignores: [
12+
// Ignore dotfiles
13+
".*.js",
14+
"node_modules/",
15+
"dist/",
16+
"**/browser.js",
17+
],
2018
},
21-
settings: {
22-
"import/resolver": {
23-
typescript: {
24-
project,
25-
},
19+
{
20+
name: "eslint-config-turbo (recreated flat)",
21+
plugins: {
22+
turbo: { rules: turboPlugin.rules },
2623
},
27-
},
28-
parser: "@typescript-eslint/parser",
29-
parserOptions: {
30-
project,
31-
},
32-
ignorePatterns: [
33-
// Ignore dotfiles
34-
".*.js",
35-
"node_modules/",
36-
"dist/",
37-
"**/browser.js",
38-
],
39-
overrides: [
40-
{
41-
files: ["*.js?(x)", "*.ts?(x)"],
24+
rules: {
25+
"turbo/no-undeclared-env-vars": "error",
4226
},
43-
],
44-
};
27+
},
28+
];

packages/config-eslint/package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@
44
"license": "MIT",
55
"private": true,
66
"main": "base.js",
7+
"type": "module",
78
"scripts": {
89
"clean": "rm -rf node_modules .tshy .tshy-build dist .turbo"
910
},
1011
"devDependencies": {
11-
"@typescript-eslint/eslint-plugin": "^7.2.0",
12-
"@typescript-eslint/parser": "^7.2.0",
1312
"eslint-config-prettier": "^9.1.0",
14-
"eslint-config-turbo": "^1.12.5",
15-
"eslint-plugin-only-warn": "^1.1.0",
13+
"eslint-config-turbo": "^2.1.1",
1614
"typescript": "^5.5.4"
1715
},
1816
"publishConfig": {},
19-
"sideEffects": false
17+
"sideEffects": false,
18+
"dependencies": {
19+
"@eslint/js": "^9.9.1",
20+
"@types/eslint__js": "^8.42.3",
21+
"typescript-eslint": "^8.3.0"
22+
}
2023
}

packages/config-typescript/base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
"allowJs": true,
2020
"target": "ES2022"
2121
}
22-
}
22+
}

packages/config-vitest/browser.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { nodePolyfills } from "vite-plugin-node-polyfills";
66
const require = createRequire(import.meta.url);
77
const imagesFolder = path.join(
88
path.join(path.dirname(require.resolve("@jimp/test-utils")), "../../"),
9-
"images"
9+
"images",
1010
);
1111

1212
export default defineConfig({

0 commit comments

Comments
 (0)