diff --git a/.github/workflows/pkg.pr.new.yml b/.github/workflows/pkg.pr.new.yml
index 0cdcc4e8..f49099b8 100644
--- a/.github/workflows/pkg.pr.new.yml
+++ b/.github/workflows/pkg.pr.new.yml
@@ -34,4 +34,4 @@ jobs:
run: pnpm install
- name: Build
run: pnpm build
- - run: pnpm dlx pkg-pr-new publish --pnpm
\ No newline at end of file
+ - run: pnpx pkg-pr-new publish --compact --pnpm
\ No newline at end of file
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index c0a6e5a4..a7cea0b0 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,3 +1,3 @@
{
- "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
+ "recommendations": ["Vue.volar"]
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c7504b7e..fc002de3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,22 @@
+# Changelog
+## [2.0.0](https://github.com/Tresjs/post-processing/compare/1.0.0...2.0.0) (2025-01-03)
+
+### ⚠ BREAKING CHANGES
+
+* Consolidated post-processing effects under a unified namespace (`@tresjs/post-processing`). Pmndrs `EffectComposer` is now `EffectComposerPmndrs`, same for all the effects and composables under `src/core/pmndrs` to avoid name collisions
+
+* chore: remove nuxt playground
+
+* docs: updated docs to breaking changes
+
+* chore: update deps and tsconfig for docs
+
+* fix: adjusted aliases in vite config
+
+### Bug Fixes
+
+* unified-exports-suffix-pmndrs-effects ([#154](https://github.com/Tresjs/post-processing/issues/154)) ([3a2ec97](https://github.com/Tresjs/post-processing/commit/3a2ec97e04fdf4523865092ef63b0d8935574266))
## [1.0.0](https://github.com/Tresjs/post-processing/compare/1.0.0-next.1...1.0.0) (2024-11-26)
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index 0f57f6eb..e437b3a5 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -88,8 +88,7 @@ export default defineConfig({
},
resolve: {
alias: {
- '@tresjs/post-processing/three': resolve(__dirname, '../../src/core/three'),
- '@tresjs/post-processing/pmndrs': resolve(__dirname, '../../src/core/pmndrs'),
+ '@tresjs/post-processing': resolve(__dirname, '../../src'),
},
dedupe: ['three', '@tresjs/core'],
},
diff --git a/docs/.vitepress/theme/components/pmdrs/BloomDemo.vue b/docs/.vitepress/theme/components/pmdrs/BloomDemo.vue
index 524f2a1c..d72abb11 100644
--- a/docs/.vitepress/theme/components/pmdrs/BloomDemo.vue
+++ b/docs/.vitepress/theme/components/pmdrs/BloomDemo.vue
@@ -1,6 +1,6 @@
@@ -54,20 +54,22 @@ You can import post-processing effects from both pmndrs and native Three.js.
```
-### Using pmndrs effects
+### Using Pmndrs effects
+
+You can also use Pmndrs `postprocessing` effects, but you need to use the `EffectComposerPmndrs` component instead of `EffectComposer` and suffix the effects with `Pmndrs`.
```html
-
-
-
-
+
+
+
+
```
diff --git a/docs/guide/pmndrs/bloom.md b/docs/guide/pmndrs/bloom.md
index fecdb52c..e584e14f 100644
--- a/docs/guide/pmndrs/bloom.md
+++ b/docs/guide/pmndrs/bloom.md
@@ -10,19 +10,19 @@ Bloom is an effect that simulates the way that bright objects in the real world
```vue
-
-
+
-
+
```
diff --git a/docs/guide/pmndrs/depth-of-field.md b/docs/guide/pmndrs/depth-of-field.md
index 1af9b52b..90255f52 100644
--- a/docs/guide/pmndrs/depth-of-field.md
+++ b/docs/guide/pmndrs/depth-of-field.md
@@ -12,13 +12,13 @@ This photographic technique allows photographers and filmmakers to draw attentio
```vue
-
-
-
+
+
+
```
diff --git a/docs/guide/pmndrs/glitch.md b/docs/guide/pmndrs/glitch.md
index 63dec57b..37714c71 100644
--- a/docs/guide/pmndrs/glitch.md
+++ b/docs/guide/pmndrs/glitch.md
@@ -16,13 +16,13 @@ This effect may potentially cause epileptic seizures in people with photosensiti
```vue
-
-
-
+
+
+
```
diff --git a/docs/guide/pmndrs/noise.md b/docs/guide/pmndrs/noise.md
index 5116a46b..55d2c37a 100644
--- a/docs/guide/pmndrs/noise.md
+++ b/docs/guide/pmndrs/noise.md
@@ -10,18 +10,18 @@ Noise is an effect that adds Gaussian noise to the scene. This can be used to si
```vue
-
-
+
-
+
```
diff --git a/docs/guide/pmndrs/outline.md b/docs/guide/pmndrs/outline.md
index 7cdd62ab..3deb045d 100644
--- a/docs/guide/pmndrs/outline.md
+++ b/docs/guide/pmndrs/outline.md
@@ -10,13 +10,13 @@ Outline is an effect that applies an outline to objects in your scene. This effe
```vue
-
-
-
+
+
+
```
diff --git a/docs/guide/pmndrs/pixelation.md b/docs/guide/pmndrs/pixelation.md
index 381359cd..b4330b04 100644
--- a/docs/guide/pmndrs/pixelation.md
+++ b/docs/guide/pmndrs/pixelation.md
@@ -10,13 +10,13 @@ Pixelation is an effect that pixelates the scene.
```vue
-
-
-
+
+
+
```
diff --git a/docs/guide/pmndrs/vignette.md b/docs/guide/pmndrs/vignette.md
index a8a1cb45..23d4836f 100644
--- a/docs/guide/pmndrs/vignette.md
+++ b/docs/guide/pmndrs/vignette.md
@@ -10,16 +10,16 @@ Vignette is an effect that darkens the edges of the scene to make the center pop
```vue
-
-
+
-
+
```
diff --git a/docs/guide/three/glitch.md b/docs/guide/three/glitch.md
index fca973ca..037e3b93 100644
--- a/docs/guide/three/glitch.md
+++ b/docs/guide/three/glitch.md
@@ -16,7 +16,7 @@ This effect may potentially cause epileptic seizures in people with photosensiti
```vue
diff --git a/docs/guide/three/halftone.md b/docs/guide/three/halftone.md
index c9b24bef..55f1bb8b 100644
--- a/docs/guide/three/halftone.md
+++ b/docs/guide/three/halftone.md
@@ -10,7 +10,7 @@ Halftone is an effect that simulates the halftone printing technique, which uses
```vue
diff --git a/docs/guide/three/pixelation.md b/docs/guide/three/pixelation.md
index b477289f..a679529c 100644
--- a/docs/guide/three/pixelation.md
+++ b/docs/guide/three/pixelation.md
@@ -10,7 +10,7 @@ Pixelation is an effect that pixelates the scene.
```vue
diff --git a/docs/guide/three/smaa.md b/docs/guide/three/smaa.md
index 3b377327..fe272e62 100644
--- a/docs/guide/three/smaa.md
+++ b/docs/guide/three/smaa.md
@@ -10,7 +10,7 @@ SMAA (Subpixel Morphological Antialiasing) is an antialiasing technique that aim
```vue
diff --git a/docs/guide/three/unreal-bloom.md b/docs/guide/three/unreal-bloom.md
index 85ddb8cc..13a827f2 100644
--- a/docs/guide/three/unreal-bloom.md
+++ b/docs/guide/three/unreal-bloom.md
@@ -10,7 +10,7 @@ Unreal Bloom is an effect that simulates the bloom effect seen in many modern vi
```vue
diff --git a/docs/tsconfig.json b/docs/tsconfig.json
index 56835afd..1043292b 100644
--- a/docs/tsconfig.json
+++ b/docs/tsconfig.json
@@ -4,7 +4,10 @@
"jsx": "preserve",
"lib": ["DOM", "ESNext"],
"module": "esnext",
- "moduleResolution": "node",
+ "moduleResolution": "bundler",
+ "paths": {
+ "@tresjs/post-processing": ["../../src"]
+ },
"resolveJsonModule": true,
"types": ["vite/client"],
"strict": true,
diff --git a/package.json b/package.json
index 86d433e7..9a7e9d65 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "@tresjs/post-processing",
"type": "module",
- "version": "1.0.0",
+ "version": "2.0.0",
"packageManager": "pnpm@9.14.2",
"description": "Post-processing library for TresJS",
"author": "Alvaro Saburido (https://github.com/alvarosabu/)",
@@ -24,13 +24,10 @@
"Tino Koch (https://github.com/Tinoooo)"
],
"exports": {
- "./three": {
- "types": "./dist/three.d.ts",
- "import": "./dist/three.js"
- },
- "./pmndrs": {
- "types": "./dist/pmndrs.d.ts",
- "import": "./dist/pmndrs.js"
+ ".": {
+ "types": "./dist/tres-post-processing.d.ts",
+ "import": "./dist/tres-post-processing.js",
+ "require": "./dist/tres-post-processing.cjs"
},
"./*": "./*"
},
@@ -59,32 +56,32 @@
"vue": ">=3.4"
},
"dependencies": {
- "@vueuse/core": "^11.3.0",
- "postprocessing": "^6.36.4"
+ "@vueuse/core": "^12.2.0",
+ "postprocessing": "^6.36.5"
},
"devDependencies": {
- "@release-it/conventional-changelog": "^9.0.3",
+ "@release-it/conventional-changelog": "^9.0.4",
"@tresjs/core": "^4.3.1",
"@tresjs/eslint-config": "^1.4.0",
- "@types/three": "^0.170.0",
- "@unocss/core": "^0.64.1",
+ "@types/three": "^0.171.0",
+ "@unocss/core": "^0.65.3",
"@vitejs/plugin-vue": "^5.2.1",
- "eslint": "^9.15.0",
+ "eslint": "^9.17.0",
"gsap": "^3.12.5",
"kolorist": "^1.8.0",
"pathe": "^1.1.2",
- "release-it": "^17.10.0",
+ "release-it": "^17.11.0",
"rollup-plugin-analyzer": "^4.0.0",
- "rollup-plugin-visualizer": "^5.12.0",
- "three": "^0.170.0",
+ "rollup-plugin-visualizer": "^5.13.1",
+ "three": "^0.172.0",
"typescript": "^5.7.2",
- "unocss": "^0.64.1",
- "vite": "^6.0.0",
+ "unocss": "^0.65.3",
+ "vite": "^6.0.6",
"vite-plugin-banner": "^0.8.0",
- "vite-plugin-dts": "4.3.0",
+ "vite-plugin-dts": "4.4.0",
"vite-svg-loader": "^5.1.0",
"vitepress": "1.5.0",
"vue": "^3.5.13",
- "vue-tsc": "^2.1.10"
+ "vue-tsc": "^2.2.0"
}
}
diff --git a/playground-nuxt/.gitignore b/playground-nuxt/.gitignore
deleted file mode 100644
index 4a7f73a2..00000000
--- a/playground-nuxt/.gitignore
+++ /dev/null
@@ -1,24 +0,0 @@
-# Nuxt dev/build outputs
-.output
-.data
-.nuxt
-.nitro
-.cache
-dist
-
-# Node dependencies
-node_modules
-
-# Logs
-logs
-*.log
-
-# Misc
-.DS_Store
-.fleet
-.idea
-
-# Local env files
-.env
-.env.*
-!.env.example
diff --git a/playground-nuxt/.npmrc b/playground-nuxt/.npmrc
deleted file mode 100644
index c483022c..00000000
--- a/playground-nuxt/.npmrc
+++ /dev/null
@@ -1 +0,0 @@
-shamefully-hoist=true
\ No newline at end of file
diff --git a/playground-nuxt/README.md b/playground-nuxt/README.md
deleted file mode 100644
index f5db2a2d..00000000
--- a/playground-nuxt/README.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# Nuxt 3 Minimal Starter
-
-Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
-
-## Setup
-
-Make sure to install the dependencies:
-
-```bash
-# npm
-npm install
-
-# pnpm
-pnpm install
-
-# yarn
-yarn install
-
-# bun
-bun install
-```
-
-## Development Server
-
-Start the development server on `http://localhost:3000`:
-
-```bash
-# npm
-npm run dev
-
-# pnpm
-pnpm run dev
-
-# yarn
-yarn dev
-
-# bun
-bun run dev
-```
-
-## Production
-
-Build the application for production:
-
-```bash
-# npm
-npm run build
-
-# pnpm
-pnpm run build
-
-# yarn
-yarn build
-
-# bun
-bun run build
-```
-
-Locally preview production build:
-
-```bash
-# npm
-npm run preview
-
-# pnpm
-pnpm run preview
-
-# yarn
-yarn preview
-
-# bun
-bun run preview
-```
-
-Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
diff --git a/playground-nuxt/app.vue b/playground-nuxt/app.vue
deleted file mode 100644
index 2b1be090..00000000
--- a/playground-nuxt/app.vue
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/playground-nuxt/nuxt.config.ts b/playground-nuxt/nuxt.config.ts
deleted file mode 100644
index 6d126026..00000000
--- a/playground-nuxt/nuxt.config.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { resolve } from 'pathe'
-
-// https://nuxt.com/docs/api/configuration/nuxt-config
-export default defineNuxtConfig({
- devtools: { enabled: true },
- modules: [
- '@tresjs/nuxt',
- ],
- vite: {
- resolve: {
- alias: {
- '@tresjs/post-processing/pmndrs': resolve(__dirname, '../src/core/pmndrs'),
- '@tresjs/post-processing/three': resolve(__dirname, '../src/core/three'),
- },
- dedupe: ['three', '@tresjs/core', '@vueuse/core'],
- },
- },
- compatibilityDate: '2024-10-13',
-})
diff --git a/playground-nuxt/package.json b/playground-nuxt/package.json
deleted file mode 100644
index b37afec6..00000000
--- a/playground-nuxt/package.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "nuxt-app",
- "type": "module",
- "private": true,
- "scripts": {
- "build": "nuxt build",
- "dev": "nuxt dev",
- "generate": "nuxt generate",
- "preview": "nuxt preview",
- "postinstall": "nuxt prepare"
- },
- "dependencies": {
- "@tresjs/cientos": "^4.0.3",
- "@tresjs/nuxt": "^3.0.7",
- "@tresjs/post-processing": "^0.7.1",
- "@types/three": "^0.169.0"
- },
- "devDependencies": {
- "@nuxt/devtools": "latest",
- "nuxt": "^3.8.0",
- "vue": "^3.4",
- "vue-router": "^4.2.5"
- }
-}
diff --git a/playground-nuxt/pages/index.vue b/playground-nuxt/pages/index.vue
deleted file mode 100644
index 58bb6e51..00000000
--- a/playground-nuxt/pages/index.vue
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/playground-nuxt/public/favicon.ico b/playground-nuxt/public/favicon.ico
deleted file mode 100644
index 18993ad9..00000000
Binary files a/playground-nuxt/public/favicon.ico and /dev/null differ
diff --git a/playground-nuxt/server/tsconfig.json b/playground-nuxt/server/tsconfig.json
deleted file mode 100644
index b9ed69c1..00000000
--- a/playground-nuxt/server/tsconfig.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "extends": "../.nuxt/tsconfig.server.json"
-}
diff --git a/playground-nuxt/tsconfig.json b/playground-nuxt/tsconfig.json
deleted file mode 100644
index a746f2a7..00000000
--- a/playground-nuxt/tsconfig.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- // https://nuxt.com/docs/guide/concepts/typescript
- "extends": "./.nuxt/tsconfig.json"
-}
diff --git a/playground/package.json b/playground/package.json
index 01e7cfae..e3001664 100644
--- a/playground/package.json
+++ b/playground/package.json
@@ -11,6 +11,7 @@
"dependencies": {
"@tresjs/cientos": "^4.0.2",
"@tresjs/core": "4.3.1",
+ "@tresjs/post-processing": "workspace:*",
"vue-router": "^4.5.0"
},
"devDependencies": {
diff --git a/playground/src/components/BasicScene.vue b/playground/src/components/BasicScene.vue
index bdfe136a..cc4f4f86 100644
--- a/playground/src/components/BasicScene.vue
+++ b/playground/src/components/BasicScene.vue
@@ -1,7 +1,7 @@
diff --git a/playground/src/pages/three/smaa.vue b/playground/src/pages/three/smaa.vue
index f113b00c..5468c616 100644
--- a/playground/src/pages/three/smaa.vue
+++ b/playground/src/pages/three/smaa.vue
@@ -1,5 +1,5 @@