diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dd2e93a..dd4a5b6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,18 +14,18 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [14, 16] + node: [14, 16, 18, 20] steps: - name: Checkout ${{ matrix.node }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup node ${{ matrix.node }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - name: Cache dependencies ${{ matrix.node }} - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/.npm key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 13e4b5a..ef37c66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -**2.2.1** +**2.1.1** - added [TypeScript types](./src/index.d.ts) **2.1.0** diff --git a/package.json b/package.json index 790f80a..e497cac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "easy-speech", - "version": "2.1.0", + "version": "2.1.1", "description": "Cross browser Speech Synthesis", "type": "module", "main": "./dist/EasySpeech.cjs.js", diff --git a/src/demo.js b/src/demo.js index 2e83916..956ecea 100644 --- a/src/demo.js +++ b/src/demo.js @@ -151,7 +151,6 @@ async function populateVoices (initialized) { inputs.language.appendChild(option) }) - debug('attach events, cleanup') inputs.voice = document.querySelector('#voice-select') @@ -177,7 +176,7 @@ function updateVoiceSelect (voices, value, defaultURI) { filteredVoices = value === 'all' ? voices : voices.filter(voice => ( - voice.lang.indexOf(`${value}-`) > -1 || + voice.lang.indexOf(`${value}-`) > -1 || voice.lang.indexOf(`${value}_`) > -1)) .sort((a, b) => a.name.localeCompare(b.name)) @@ -205,7 +204,7 @@ function updateVoiceSelect (voices, value, defaultURI) { } } -function selectVoice(index) { +function selectVoice (index) { if (index < 0 || index > filteredVoices.length - 1) { values.voice = undefined return