pstanoev / simple-svelte-autocomplete

Simple Autocomplete / typeahead component for Svelte
http://simple-svelte-autocomplete.surge.sh/
MIT License
464 stars 78 forks source link

Bump svelte from 3.47.0 to 3.49.0 #179

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps svelte from 3.47.0 to 3.49.0.

Changelog

Sourced from svelte's changelog.

3.49.0

  • Improve performance of string escaping during SSR (#5701)
  • Add ComponentType and ComponentProps convenience types (#6770)
  • Add support for CSS @layer (#7504)
  • Export CompileOptions from svelte/compiler (#7658)
  • Fix DOM-less components not being properly destroyed (#7488)
  • Fix class: directive updates with <svelte:element> (#7521, #7571)
  • Harden attribute escaping during SSR (#7530)

3.48.0

  • Allow creating cancelable custom events with createEventDispatcher (#4623)
  • Support {@const} tag in {#if} blocks #7241
  • Return the context object in setContext #7427
  • Allow comments inside {#each} blocks when using animate: (#3999)
  • Fix |local transitions in {#key} blocks (#5950)
  • Support svg namespace for {@html} (#7002, #7450)
  • Fix {@const} tag not working inside a component when there's no let: #7189
  • Remove extraneous leading newline inside <pre> and <textarea> (#7264)
  • Fix erroneous setting of textContent for \<template> elements (#7297)
  • Fix value of let: bindings not updating in certain cases (#7440)
  • Fix handling of void tags in <svelte:element> (#7449)
  • Fix handling of boolean attributes in <svelte:element> (#7478)
  • Add special style scoping handling of [open] selectors on <dialog> elements (#7495)
Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/pstanoev/simple-svelte-autocomplete/network/alerts).
github-actions[bot] commented 2 years ago

Coverage report

❌ An unexpected error occurred. For more details, check console

Error: The process '/usr/local/bin/npx' failed with exit code 1
St.:grey_question:
Category Percentage Covered / Total
🔴 Statements 57.33% 266/464
🟡 Branches 68.6% 177/258
🔴 Functions 35.29% 6/17
🔴 Lines 57.38% 241/420

Test suite run failed

Failed tests: 8/16. Failed suites: 3/4.
``` ● on focus, menu is shown with all the elements TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at resetListToAllItemsAndOpen (src/SimpleAutocomplete.svelte:2666:3) at HTMLInputElement.onFocusInternal (src/SimpleAutocomplete.svelte:2640:3) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as focus] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as focus] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/sync.test.ts:21:19) ● on focus, menu is shown with all the elements expect(element).toBeVisible() Received element is not visible:
22 | 23 | expect(await screen.queryByText('White')).toBeInTheDocument() > 24 | expect(await screen.queryByText('White')).toBeVisible() | ^ 25 | expect(await screen.queryByText('Red')).toBeInTheDocument() 26 | expect(await screen.queryByText('Red')).toBeVisible() 27 | }) at Object. (src/tests/sync.test.ts:24:45) ● when something is queried, only the matching items are shown TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/sync.test.ts:33:19) ● when something is queried, only the matching items are shown expect(element).toBeVisible() Received element is not visible: 34 | 35 | expect(await screen.queryByText('White')).toBeInTheDocument() > 36 | expect(await screen.queryByText('White')).toBeVisible() | ^ 37 | expect(await screen.queryByText('Red')).not.toBeInTheDocument() 38 | }) 39 | at Object. (src/tests/sync.test.ts:36:45) ● when nothing matches the query, no item is show TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/sync.test.ts:44:19) ● when something is queried, the query is highlighted TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/sync.test.ts:55:19) ``` --- ``` ● when something is queried, only the matching items are shown TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/async.test.ts:31:19) ● when something is queried, only the matching items are shown expect(element).toBeVisible() Received element is not visible: 32 | 33 | expect(await screen.queryByText('White')).toBeInTheDocument() > 34 | expect(await screen.queryByText('White')).toBeVisible() | ^ 35 | expect(await screen.queryByText('Red')).not.toBeInTheDocument() 36 | }) 37 | at Object. (src/tests/async.test.ts:34:45) ● when nothing matches the query, no item is show TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/async.test.ts:42:19) ● when something is queried, the query is highlighted TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/async.test.ts:53:19) ``` --- ``` ● when selection is multiple, selectedItem is a list TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/multiple.test.ts:14:19) ● when selection is multiple, selectedItem is a list TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at resetListToAllItemsAndOpen (src/SimpleAutocomplete.svelte:2666:3) at HTMLInputElement.onFocusInternal (src/SimpleAutocomplete.svelte:2640:3) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at Object.exports.fireFocusEventWithTargetAdjustment (node_modules/jsdom/lib/jsdom/living/helpers/focusing.js:103:10) at HTMLInputElementImpl.focus (node_modules/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js:68:14) at HTMLInputElement.focus (node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js:119:34) at onListItemClick (src/SimpleAutocomplete.svelte:2501:11) at Array.click_handler (src/SimpleAutocomplete.svelte:2932:36) at HTMLDivElement.click_handler (src/SimpleAutocomplete.svelte:1065:28) at HTMLDivElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as click] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as click] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/multiple.test.ts:15:19) ● when selection is multiple, selectedItem is a list TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/multiple.test.ts:19:19) ```

Report generated by 🧪jest coverage report action from 3c5c4c45f93a9da12927b90a60443fe6647351bb