Skip to content

Visualize Your Ideas With Code

15.8 KB
Raw Blame

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.17.2 (2024-12-14)

Bug Fixes

  • vite-plugin, ui: project file path on selection (#1090) (f15b375)

3.17.0 (2024-08-13)

Features

  • vite-plugin: let plugins override config (#1054) (9b01eb5)

3.15.1 (2024-03-21)

Bug Fixes

3.14.1 (2024-02-06)

Bug Fixes

3.14.0 (2024-02-04)

Features

3.13.0 (2024-01-10)

Note: Version bump only for package @motion-canvas/vite-plugin

3.12.3 (2024-01-04)

Note: Version bump only for package @motion-canvas/vite-plugin

3.12.2 (2023-12-31)

Bug Fixes

3.12.1 (2023-12-31)

Bug Fixes

3.12.0 (2023-12-31)

Bug Fixes

  • exclude preact from optimizations (#894) (15687cc)
  • vite-plugin: create empty output directory if not exist (#787) (20cceef)
  • vite-plugin: handle unusual characters in file names (#821) (1e57497), closes #764

Features

  • vite-plugin: support glob for project files (#834) (67029c4), closes #324

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.11.0 (2023-10-13)

Features

  • core: hot module replacement for audio (#793) (d40c1a8)

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.10.0 (2023-07-23)

Note: Version bump only for package @motion-canvas/vite-plugin

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.9.0 (2023-05-29)

Features

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.8.0 (2023-05-13)

Bug Fixes

  • remove dependency pre-bundling warning (#676) (38c81ff)

Features

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.7.0 (2023-05-10)

Features

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.4.0 (2023-03-28)

Features

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.3.0 (2023-03-18)

Bug Fixes

Features

3.2.0 (2023-03-10)

Features

3.1.0 (2023-03-07)

Note: Version bump only for package @motion-canvas/vite-plugin

3.0.0 (2023-02-27)

Features

BREAKING CHANGES

  • makeProject no longer accepts some settings.

Settings such as background and audioOffset are now stored in the project meta file.

2.6.0 (2023-02-24)

Features

2.4.0 (2023-02-18)

Bug Fixes

  • vite-plugin: ignore query param in devserver (#351) (5644d72)

2.2.0 (2023-02-09)

Note: Version bump only for package @motion-canvas/vite-plugin

2.1.0 (2023-02-07)

Bug Fixes

2.0.0 (2023-02-04)

Code Refactoring

Features

Reverts

BREAKING CHANGES

  • remove legacy package
  • change to import paths

See the migration guide for more info.

  • change the way scenes are imported

Scene files no longer need to follow the pattern: [name].scene.tsx. When importing scenes in the project file, a dedicated ?scene query param should be used:

import example from './scenes/example?scene';

export default new Project({
  name: 'project',
  scenes: [example],
});
  • change the overall structure of a project

vite and @motion-canvas/vite-plugin packages are now required to build a project:

npm i -D vite @motion-canvas/vite-plugin

The following vite.config.ts file needs to be created in the root of the project:

import {defineConfig} from 'vite';
import motionCanvas from '@motion-canvas/vite-plugin';

export default defineConfig({
  plugins: [motionCanvas()],
});

Types exposed by Motion Canvas are no longer global. An additional motion-canvas.d.ts file needs to be created in the src directory:

/// <reference types="@motion-canvas/core/project" />

Finally, the bootstrap function no longer exists. Project files should export an instance of the Project class instead:

import {Project} from '@motion-canvas/core/lib';

import example from './scenes/example.scene';

export default new Project({
  name: 'project',
  scenes: [example],
  // same options as in bootstrap() are available: