Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cjs dist and types support #34

Merged
merged 3 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
### 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)

*New:*
Expand Down
2 changes: 1 addition & 1 deletion demo/cellular-noise.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { Kampos, effects, noise } = window.kampos;
import { Kampos, effects, noise } from '../index.js';

const target = document.querySelector('canvas');
target.width = 854;
Expand Down
153 changes: 0 additions & 153 deletions demo/demo.html

This file was deleted.

4 changes: 2 additions & 2 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ function getIFrameHTML ({example, videos}) {
video, img {display: none;}
.clickable {cursor: pointer;}
</style>
<script src="../index.umd.js"></script>
<script type="module" src="../index.js"></script>
<script src="./utils.js"></script>
</head>
<body>
${videos}
<canvas id="target"></canvas>
<script>
<script type="module">
${example}
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion demo/disp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {Kampos, transitions} = window.kampos;
import { Kampos, transitions } from '../index.js';
const transitionDisplacement = transitions.displacement;

/*
Expand Down
2 changes: 1 addition & 1 deletion demo/dissolve-gallery.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {Kampos, effects, noise, transitions} = window.kampos;
import { Kampos, effects, noise, transitions } from '../index.js';

const target = document.querySelector('#target');

Expand Down
2 changes: 1 addition & 1 deletion demo/dissolve-transition.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {Kampos, effects, noise, transitions} = window.kampos;
import { Kampos, effects, noise, transitions } from '../index.js';

const media1 = document.querySelector('#video3');
const media2 = document.querySelector('#video4');
Expand Down
2 changes: 1 addition & 1 deletion demo/duotone.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {Kampos, effects} = window.kampos;
import { Kampos, effects } from '../index.js';

const target = document.querySelector('#target');
const media = document.querySelector('#video6');
Expand Down
2 changes: 1 addition & 1 deletion demo/hue-fade.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {Kampos, effects, transitions} = window.kampos;
import { Kampos, transitions } from '../index.js';

const media1 = document.querySelector('#video3');
const media2 = document.querySelector('#video4');
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,6 @@

<script src="./lib/codemirror/codemirror.js"></script>
<script src="./lib/codemirror/javascript.js"></script>
<script src="index.js?v=4"></script>
<script type="module" src="index.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
video, img {display: none;}
.clickable {cursor: pointer;}
</style>
<script src="../index.umd.js"></script>
<script type="module" src="../index.js"></script>
<script src="./utils.js"></script>
</head>
<body>
${videos}
<canvas id="target"></canvas>
<script>
<script type="module">
${example}
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion demo/kaleidoscope.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {Kampos, effects, noise, transitions} = window.kampos;
import { Kampos, effects } from '../index.js';

const media = document.querySelector('#video8');
const target = document.querySelector('#target');
Expand Down
2 changes: 1 addition & 1 deletion demo/turbulence.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {Kampos, effects, noise} = window.kampos;
import { Kampos, effects, noise } from '../index.js';

const target = document.createElement('canvas');
target.width = 854;
Expand Down
Loading
Loading