Comparing version 0.9.2 to 0.10.0
@@ -0,1 +1,16 @@ | ||
### 0.10.0 (2024-08-20) | ||
*New:* | ||
- Added a `dist/index.cjs` distribution. | ||
- Replaced `index.js` with `src/index.js`. | ||
*Fixed:* | ||
- Fixed `extends` property of type `Attribute`. | ||
*Breaking:* | ||
- `main` field in `package.json` now points to `dist/index.cjs`. | ||
### 0.9.2 (2024-08-20) | ||
@@ -2,0 +17,0 @@ |
@@ -1,2 +0,2 @@ | ||
const { Kampos, effects, noise } = window.kampos; | ||
import { Kampos, effects, noise } from '../index.js'; | ||
@@ -3,0 +3,0 @@ const target = document.querySelector('canvas'); |
@@ -15,3 +15,3 @@ function updatePreview (iframe, example, videos) { | ||
</style> | ||
<script src="../index.umd.js"></script> | ||
<script type="module" src="../index.js"></script> | ||
<script src="./utils.js"></script> | ||
@@ -22,3 +22,3 @@ </head> | ||
<canvas id="target"></canvas> | ||
<script> | ||
<script type="module"> | ||
${example} | ||
@@ -25,0 +25,0 @@ </script> |
@@ -1,2 +0,2 @@ | ||
const {Kampos, transitions} = window.kampos; | ||
import { Kampos, transitions } from '../index.js'; | ||
const transitionDisplacement = transitions.displacement; | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
const {Kampos, effects, noise, transitions} = window.kampos; | ||
import { Kampos, effects, noise, transitions } from '../index.js'; | ||
@@ -3,0 +3,0 @@ const target = document.querySelector('#target'); |
@@ -1,2 +0,2 @@ | ||
const {Kampos, effects, noise, transitions} = window.kampos; | ||
import { Kampos, effects, noise, transitions } from '../index.js'; | ||
@@ -3,0 +3,0 @@ const media1 = document.querySelector('#video3'); |
@@ -1,2 +0,2 @@ | ||
const {Kampos, effects} = window.kampos; | ||
import { Kampos, effects } from '../index.js'; | ||
@@ -3,0 +3,0 @@ const target = document.querySelector('#target'); |
@@ -1,2 +0,2 @@ | ||
const {Kampos, effects, transitions} = window.kampos; | ||
import { Kampos, transitions } from '../index.js'; | ||
@@ -3,0 +3,0 @@ const media1 = document.querySelector('#video3'); |
@@ -18,3 +18,3 @@ (function () { | ||
</style> | ||
<script src="../index.umd.js"></script> | ||
<script type="module" src="../index.js"></script> | ||
<script src="./utils.js"></script> | ||
@@ -25,3 +25,3 @@ </head> | ||
<canvas id="target"></canvas> | ||
<script> | ||
<script type="module"> | ||
${example} | ||
@@ -28,0 +28,0 @@ </script> |
@@ -1,2 +0,2 @@ | ||
const {Kampos, effects, noise, transitions} = window.kampos; | ||
import { Kampos, effects } from '../index.js'; | ||
@@ -3,0 +3,0 @@ const media = document.querySelector('#video8'); |
@@ -1,2 +0,2 @@ | ||
const {Kampos, effects, noise} = window.kampos; | ||
import { Kampos, effects, noise } from '../index.js'; | ||
@@ -3,0 +3,0 @@ const target = document.createElement('canvas'); |
{ | ||
"name": "kampos", | ||
"version": "0.9.2", | ||
"version": "0.10.0", | ||
"description": "Tiny and fast effects compositor on WebGL", | ||
"registry": "https://registry.npmjs.org/", | ||
"main": "index.js", | ||
"main": "dist/index.cjs", | ||
"module": "index.js", | ||
@@ -8,0 +8,0 @@ "type": "module", |
import progress from 'rollup-plugin-progress'; | ||
import filesize from 'rollup-plugin-filesize'; | ||
const config = { | ||
input: 'src/index.js', | ||
export default { | ||
input: 'index.js', | ||
output: { | ||
file: 'index.js', | ||
format: 'esm' | ||
file: 'dist/index.cjs', | ||
format: 'cjs' | ||
}, | ||
@@ -17,3 +17,1 @@ plugins: [ | ||
}; | ||
export default config; |
import progress from 'rollup-plugin-progress'; | ||
import filesize from 'rollup-plugin-filesize'; | ||
const config = { | ||
input: './src/index.js', | ||
export default { | ||
input: './index.js', | ||
output: { | ||
@@ -19,3 +19,1 @@ name: 'kampos', | ||
}; | ||
export default config; |
@@ -57,3 +57,3 @@ declare type KamposConfig = { | ||
declare type Attribute = { | ||
extends: string; | ||
extends?: string; | ||
name: string; | ||
@@ -60,0 +60,0 @@ size: number; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
21271
10265921