Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
fb1a952
chore(deps): update dependencies and configs
kvvasuu Jul 13, 2026
6cb3b11
chore: update major version
kvvasuu Jul 21, 2026
9ded1a0
chore: revert version bump and fix ts build errors
kvvasuu Jul 22, 2026
a8186b7
chore: update dependencies and vite config
kvvasuu Jul 22, 2026
a92624e
refactor(wrapEffect): split out of util.tsx, support ref as a prop
kvvasuu Jul 26, 2026
e233f7a
fix(Autofocus): forward ref via props instead of forwardRef
kvvasuu Jul 26, 2026
05786a6
fix(EffectComposer): fix StrictMode composer leak, guard against r3f …
kvvasuu Jul 26, 2026
50278be
fix: dispose <primitive>-based effects, r3f never does it for them
kvvasuu Jul 26, 2026
e6371e2
style: modernize imports in Selection and LensFlare
kvvasuu Jul 26, 2026
2dd47a5
test: add EffectComposer/wrapEffect coverage
kvvasuu Jul 26, 2026
fbda0cb
fix(wrapEffect): don't crash on circular prop values (#333, #334)
kvvasuu Jul 26, 2026
84cb207
test(ChromaticAberration): verify tuple offset coerces to Vector2 (#348)
kvvasuu Jul 26, 2026
e2704a4
fix(wrapEffect): stop invoking prop toJSON in the args fingerprint
kvvasuu Jul 26, 2026
5f4f60c
test(wrapEffect): lock in ref-attached repeated re-renders (#333, #334)
kvvasuu Jul 26, 2026
e13a8fa
fix(EffectComposer): accept ReactNode children, not just JSX.Element
kvvasuu Jul 26, 2026
0f4de3c
fix(Autofocus): guard depthPickingPass/copyPass against double dispose
kvvasuu Jul 27, 2026
836d659
test: add smoke coverage for every effect component
kvvasuu Jul 27, 2026
38db2b9
fix(eslint): make dist/node_modules a real global ignore
kvvasuu Jul 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

71 changes: 0 additions & 71 deletions .eslintrc.json

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ yarn-error.log
pnpm-debug.log
.parcel-cache
pnpm-lock.yaml
storybook-static
storybook-static

*.tgz
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"tabWidth": 2,
"printWidth": 120,
"endOfLine": "auto"
}
}
139 changes: 139 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat'
import { FlatCompat } from '@eslint/eslintrc'
import js from '@eslint/js'
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
import _import from 'eslint-plugin-import'
import prettier from 'eslint-plugin-prettier'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import { defineConfig } from 'eslint/config'
import globals from 'globals'
import path from 'node:path'
import { fileURLToPath } from 'node:url'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default defineConfig([
{ ignores: ['dist', 'node_modules'] },
{
extends: fixupConfigRules(
compat.extends(
'prettier',
'plugin:prettier/recommended',
'plugin:react-hooks/recommended',
'plugin:import/errors',
'plugin:import/warnings'
)
),

plugins: {
'@typescript-eslint': typescriptEslint,
react,
prettier: fixupPluginRules(prettier),
'react-hooks': fixupPluginRules(reactHooks),
import: fixupPluginRules(_import),
},
languageOptions: {
globals: {
...globals.browser,
...globals['shared-node-browser'],
...globals.node,
},

parser: tsParser,
ecmaVersion: 2018,
sourceType: 'module',

parserOptions: {
ecmaFeatures: {
jsx: true,
},

rules: {
curly: ['warn', 'multi-line', 'consistent'],
'no-console': 'off',
'no-empty-pattern': 'warn',
'no-duplicate-imports': 'error',

'import/no-unresolved': [
'error',
{
commonjs: true,
amd: true,
},
],

'import/export': 'error',
'import/named': 'off',
'import/namespace': 'off',
'import/default': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',

'no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],

'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],

'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
},

settings: {
react: {
version: 'detect',
},

'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],

'import/parsers': {
'@typescript-eslint/parser': ['.js', '.jsx', '.ts', '.tsx'],
},

'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
paths: ['src'],
},

alias: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
map: [['@react-three/postprocessing', './src/index.tsx']],
},
},
},
},
{
files: ['**/src'],

languageOptions: {
ecmaVersion: 5,
sourceType: 'script',

parserOptions: {
project: './tsconfig.json',
},
},
},
])
62 changes: 32 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,44 +24,46 @@
"url": "git+https://github.com/pmndrs/react-postprocessing.git"
},
"scripts": {
"build": "rimraf dist && vite build && tsc",
"eslint": "eslint . --fix --ext=js,ts,jsx,tsx",
"eslint:ci": "eslint . --ext=js,ts,jsx,tsx",
"build": "vite build && tsc",
"eslint": "eslint . --fix",
"eslint:ci": "eslint .",
"test": "vitest run",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"maath": "^0.6.0",
"n8ao": "^1.9.4",
"postprocessing": "^6.36.6"
"maath": "^0.10.8",
"n8ao": "^2.0.0"
},
"devDependencies": {
"@react-three/fiber": "^9.0.4",
"@types/node": "^22.10.7",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@types/three": "^0.156.0",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"@eslint/compat": "^2.1.0",
"@eslint/eslintrc": "^3.3.6",
"@eslint/js": "^9.39.5",
"@react-three/fiber": "^9.6.1",
"@types/node": "^26.1.1",
"@types/react": "^19.2.17",
"@types/three": "^0.182.0",
"@typescript-eslint/eslint-plugin": "^8.64.0",
"@typescript-eslint/parser": "^8.64.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.8.8",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rimraf": "^6.0.1",
"three": "^0.156.0",
"typescript": "^5.0.4",
"vite": "^4.3.5",
"vitest": "^2.1.8"
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^5.5.6",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"globals": "^17.7.0",
"postprocessing": "^6.39.3",
"prettier": "^3.9.5",
"react": "^19.2.7",
"three": "^0.182.0",
"typescript": "^6.0.0",
"vite": "^8.1.4",
"vitest": "^4.1.10"
},
"peerDependencies": {
"@react-three/fiber": "^9.0.0",
"react": "^19.0",
"three": ">= 0.156.0"
"@react-three/fiber": ">=9.5.0",
"postprocessing": "^6.36.0",
"react": "^19.2.0",
"three": ">= 0.182.0"
}
}
Loading
Loading