Releases: BattlefieldDuck/xterm-svelte
2.1.0
Support Terminal Bindable
To bind the terminal in Svelte, you can use the following code:
<script lang="ts">
// ... imports
let terminal: Terminal;
</script>
<Xterm bind:terminal />
This allows you to bind the terminal variable to the Xterm component when the terminal is initialized.
What's Changed
- Bump svelte from 5.1.13 to 5.2.2 by @dependabot in #118
- Bump svelte-check from 4.0.6 to 4.0.8 by @dependabot in #116
- Bump prettier-plugin-svelte from 3.2.7 to 3.2.8 by @dependabot in #111
- Bump vite from 5.4.10 to 5.4.11 by @dependabot in #110
Full Changelog: 2.0.1...2.1.0
2.0.1
- Fix peerDependencies error while installation
What's Changed
- Bump svelte from 5.1.9 to 5.1.13 by @dependabot in #108
- Bump svelte-check from 4.0.5 to 4.0.6 by @dependabot in #106
- Bump @sveltejs/kit from 2.7.4 to 2.8.0 by @dependabot in #105
Full Changelog: 2.0.0...2.0.1
2.0.0
Svelte 5 migration guide
Deprecating createEventDispatcher and the on: directive in favour of callback props and normal element properties
Component events
In Svelte 4, components could emit events by creating a dispatcher with createEventDispatcher.
This function is deprecated in Svelte 5. Instead, components should accept callback props - which means you then pass functions as properties to these components:
- <Xterm {options} on:load={onLoad} on:data={onData} on:key={onKey} />
+ <Xterm {options} {onLoad} {onData} {onKey} />
- async function onLoad(event: CustomEvent<{ terminal: Terminal }>) {
+ async function onLoad(terminal: Terminal) {
console.log('Child component has loaded');
- const terminal = event.detail.terminal;
// FitAddon Usage
const fitAddon = new (await XtermAddon.FitAddon()).FitAddon();
terminal.loadAddon(fitAddon);
fitAddon.fit();
terminal.write('Hello World');
}
- function onData(event: CustomEvent<string>) {
+ function onData(data: string) {
- const data = event.detail;
console.log('onData()', data);
}
- function onKey(event: CustomEvent<{ key: string; domEvent: KeyboardEvent }>) {
+ function onKey(data: { key: string; domEvent: KeyboardEvent }) {
- const data = event.detail;
console.log('onKey()', data);
}
What's Changed
- Svelte 5 migration by @BattlefieldDuck in #98
- Add support for additional XtermProps by @BattlefieldDuck in #99
New Contributors
- @BattlefieldDuck made their first contribution in #98
Full Changelog: 1.0.1...2.0.0
1.0.1
What's Changed
- Bump @sveltejs/kit from 2.5.7 to 2.5.8 by @dependabot in #18
- Bump publint from 0.2.7 to 0.2.8 by @dependabot in #22
- Bump @typescript-eslint/eslint-plugin from 7.8.0 to 7.13.0 by @dependabot in #33
- Bump @typescript-eslint/parser from 7.8.0 to 7.13.0 by @dependabot in #32
- Bump eslint-plugin-svelte from 2.38.0 to 2.39.3 by @dependabot in #31
- Bump svelte from 4.2.16 to 4.2.18 by @dependabot in #30
- Bump svelte-check from 3.7.1 to 3.8.1 by @dependabot in #38
- Bump @sveltejs/vite-plugin-svelte from 3.1.0 to 3.1.1 by @dependabot in #37
- Bump tslib from 2.6.2 to 2.6.3 by @dependabot in #35
- Bump eslint-plugin-svelte from 2.39.3 to 2.40.0 by @dependabot in #34
- Bump braces from 3.0.2 to 3.0.3 in the npm_and_yarn group by @dependabot in #50
- Bump @typescript-eslint/eslint-plugin from 7.13.0 to 7.16.0 by @dependabot in #49
- Bump @typescript-eslint/parser from 7.13.0 to 7.16.0 by @dependabot in #48
- Bump prettier-plugin-svelte from 3.2.3 to 3.2.5 by @dependabot in #43
- Bump @sveltejs/package from 2.3.1 to 2.3.2 by @dependabot in #42
- Bump prettier from 3.2.5 to 3.3.2 by @dependabot in #40
- Bump vite from 5.2.11 to 5.3.4 by @dependabot in #56
- Bump typescript from 5.4.5 to 5.5.3 by @dependabot in #55
- Bump @sveltejs/adapter-auto from 3.2.0 to 3.2.2 by @dependabot in #54
- Bump vitest from 1.6.0 to 2.0.3 by @dependabot in #53
- Bump prettier from 3.3.2 to 3.3.3 by @dependabot in #51
- Bump svelte from 4.2.18 to 4.2.19 in the npm_and_yarn group by @dependabot in #73
- Bump prettier-plugin-svelte from 3.2.5 to 3.2.7 by @dependabot in #84
- Bump vitest from 2.0.3 to 2.1.3 by @dependabot in #90
- Bump eslint-plugin-svelte from 2.40.0 to 2.45.1 by @dependabot in #92
- Bump @playwright/test from 1.44.0 to 1.48.1 by @dependabot in #93
- Bump the npm_and_yarn group with 2 updates by @dependabot in #96
Full Changelog: 1.0.0...1.0.1
1.0.0
What's Changed
- Bump @typescript-eslint/eslint-plugin from 7.7.1 to 7.8.0 by @dependabot in #11
- Bump vitest from 1.5.2 to 1.5.3 by @dependabot in #10
- Bump @typescript-eslint/parser from 7.7.1 to 7.8.0 by @dependabot in #9
- Bump svelte from 4.2.15 to 4.2.16 by @dependabot in #16
- Bump @playwright/test from 1.43.1 to 1.44.0 by @dependabot in #15
- Bump vitest from 1.5.3 to 1.6.0 by @dependabot in #14
- Bump svelte-check from 3.7.0 to 3.7.1 by @dependabot in #13
- Bump vite from 5.2.10 to 5.2.11 by @dependabot in #12
Full Changelog: 0.1.0...1.0.0
0.1.0
Full Changelog: 0.0.5...0.1.0
0.0.5
Full Changelog: 0.0.4...0.0.5
0.0.4
What's Changed
- Bump eslint-plugin-svelte from 2.37.0 to 2.38.0 by @dependabot in #8
- Bump @sveltejs/kit from 2.5.6 to 2.5.7 by @dependabot in #7
- Bump vite from 5.2.9 to 5.2.10 by @dependabot in #6
Full Changelog: 0.0.3...0.0.4
0.0.3
Full Changelog: 0.0.2...0.0.3
0.0.2
Full Changelog: 0.0.1...0.0.2