From 5630fc3d36c6e3b8ff2ea3ded620451f8a0f035c Mon Sep 17 00:00:00 2001 From: Arianrhod Sandlot Date: Wed, 24 Jul 2024 13:04:07 +0800 Subject: [PATCH] chore: bump version to v0.10.0 --- changelog.md | 5 +++++ demo/demo.ts | 31 +++++++++++++------------------ package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/changelog.md b/changelog.md index 7571cc3..86502a0 100644 --- a/changelog.md +++ b/changelog.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.10.0](https://github.com/arianrhodsandlot/nostalgist/compare/v0.9.2...v0.10.0) - 2024-07-24 +### Changed +- update default retroarch-emscripten-build version to v1.19.1 +- add `getEmscripten` and `getEmscriptenAL` + ## [0.9.2](https://github.com/arianrhodsandlot/nostalgist/compare/v0.9.1...v0.9.2) - 2024-03-15 ### Fixed diff --git a/demo/demo.ts b/demo/demo.ts index 6cd8e04..705b280 100644 --- a/demo/demo.ts +++ b/demo/demo.ts @@ -16,38 +16,33 @@ async function gbc() { } async function launchNestopia() { - const abortController = new AbortController() - setTimeout(() => { - abortController.abort() - }, 500) nostalgist = await Nostalgist.launch({ core: 'nestopia', rom: 'pong1k.nes', - signal: abortController.signal, }) } async function launchFceummWithCoreConfig() { nostalgist = await Nostalgist.launch({ core: 'fceumm', - rom: 'flappybird.nes', - shader: 'crt/crt-easymode', retroarchCoreConfig: { fceumm_turbo_enable: 'Both', }, + rom: 'flappybird.nes', + shader: 'crt/crt-easymode', }) } async function launchFceummWithRaLegacy() { nostalgist = await Nostalgist.launch({ core: 'fceumm', - rom: 'flappybird.nes', resolveCoreJs(core) { return `https://cdn.jsdelivr.net/gh/arianrhodsandlot/retroarch-emscripten-build@v1.16.0/retroarch/${core}_libretro.js` }, resolveCoreWasm(core) { return `https://cdn.jsdelivr.net/gh/arianrhodsandlot/retroarch-emscripten-build@v1.16.0/retroarch/${core}_libretro.wasm` }, + rom: 'flappybird.nes', }) } @@ -87,7 +82,7 @@ function restart() { } function resize() { - nostalgist.resize({ width: 400, height: 400 }) + nostalgist.resize({ height: 400, width: 400 }) } async function screenshot() { @@ -107,7 +102,7 @@ function getCurrentNostalgist() { } Nostalgist.configure({ - style: { width: '800px', height: '600px', position: 'static' }, + style: { height: '600px', position: 'static', width: '800px' }, }) document.body.addEventListener('click', async function listener({ target }) { @@ -115,22 +110,22 @@ document.body.addEventListener('click', async function listener({ target }) { return } const handlers = { - nes, - megadrive, + exit, gbc, - launchNestopia, + launchCustomRom, launchFceummWithCoreConfig, launchFceummWithRaLegacy, - launchCustomRom, + launchNestopia, launchState, - saveState, loadState, + megadrive, + nes, pause, - resume, - restart, resize, + restart, + resume, + saveState, screenshot, - exit, } const textContent = target.textContent || '' if (textContent in handlers) { diff --git a/package.json b/package.json index d8065ec..0067abb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nostalgist", "description": "Nostalgist.js is a JavaScript library that allows you to run emulators of retro consoles within web browsers.", - "version": "0.9.2", + "version": "0.10.0", "author": { "name": "arianrhodsandlot", "email": "theguidanceofawhitetower@gmail.com" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 12f336e..80f5593 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -587,8 +587,8 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - '@mdn/browser-compat-data@5.5.40': - resolution: {integrity: sha512-5hByR+TGX/iKG7Uv3Zk8f+aUftkBcHqWE3Ym229jxm+cRjeJSBZzUKPm6H+p46vaeooql72kydrqpz0B3UrErw==} + '@mdn/browser-compat-data@5.5.41': + resolution: {integrity: sha512-KvL22UrK01+L1d8tISvZfQ7hcqV8XJoY92e9CvbqUE9LaxrTd+emXKuAgRE2QXB7PBdWaBy+b4A4erTIb/Mp6A==} '@mdx-js/mdx@3.0.1': resolution: {integrity: sha512-eIQ4QTrOWyL3LWEe/bu6Taqzq2HQvHcyTMaOrI95P2/LmJE7AsfPfgJGuFLPVqBUE1BC1rik3VIhU+s9u72arA==} @@ -4519,7 +4519,7 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@mdn/browser-compat-data@5.5.40': {} + '@mdn/browser-compat-data@5.5.41': {} '@mdx-js/mdx@3.0.1': dependencies: @@ -5007,7 +5007,7 @@ snapshots: ast-metadata-inferer@0.8.0: dependencies: - '@mdn/browser-compat-data': 5.5.40 + '@mdn/browser-compat-data': 5.5.41 ast-types-flow@0.0.8: {} @@ -5656,7 +5656,7 @@ snapshots: eslint-plugin-compat@6.0.0(eslint@9.7.0): dependencies: - '@mdn/browser-compat-data': 5.5.40 + '@mdn/browser-compat-data': 5.5.41 ast-metadata-inferer: 0.8.0 browserslist: 4.23.2 caniuse-lite: 1.0.30001643