Skip to content

Commit

Permalink
Update dependency svelte to v4 (#1840)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [svelte](https://svelte.dev)
([source](https://github.com/sveltejs/svelte)) | [`3.59.1` ->
`4.0.0`](https://renovatebot.com/diffs/npm/svelte/3.59.1/4.0.0) |
[![age](https://badges.renovateapi.com/packages/npm/svelte/4.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/svelte/4.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/svelte/4.0.0/compatibility-slim/3.59.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/svelte/4.0.0/confidence-slim/3.59.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### ⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the
Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>sveltejs/svelte (svelte)</summary>

###
[`v4.0.0`](https://github.com/sveltejs/svelte/blob/HEAD/packages/svelte/CHANGELOG.md#&#8203;400)

[Compare
Source](https://github.com/sveltejs/svelte/compare/v3.59.2...svelte@4.0.0)

##### Major Changes

- breaking: Minimum supported Node version is now Node 16
([#&#8203;8566](https://github.com/sveltejs/svelte/pull/8566))

- breaking: Minimum supported webpack version is now webpack 5
([#&#8203;8515](https://github.com/sveltejs/svelte/pull/8515))

- breaking: Bundlers must specify the `browser` condition when building
a frontend bundle for the browser
([#&#8203;8516](https://github.com/sveltejs/svelte/pull/8516))

- breaking: Minimum supported vite-plugin-svelte version is now 2.4.1.
SvelteKit users can upgrade to 1.20.0 or newer to ensure a compatible
version ([#&#8203;8516](https://github.com/sveltejs/svelte/pull/8516))

- breaking: Minimum supported `rollup-plugin-svelte` version is now
7.1.5 ([198dbcf](https://github.com/sveltejs/svelte/commit/198dbcf))

- breaking: Minimum supported `svelte-loader` is now 3.1.8
([198dbcf](https://github.com/sveltejs/svelte/commit/198dbcf))

- breaking: Minimum supported TypeScript version is now TypeScript 5 (it
will likely work with lower versions, but we make no guarantees about
that) ([#&#8203;8488](https://github.com/sveltejs/svelte/pull/8488))

- breaking: Remove `svelte/register` hook, CJS runtime version and CJS
compiler output
([#&#8203;8613](https://github.com/sveltejs/svelte/pull/8613))

- breaking: Stricter types for `createEventDispatcher` (see PR for
migration instructions)
([#&#8203;7224](https://github.com/sveltejs/svelte/pull/7224))

- breaking: Stricter types for `Action` and `ActionReturn` (see PR for
migration instructions)
([#&#8203;7442](https://github.com/sveltejs/svelte/pull/7442))

- breaking: Stricter types for `onMount` - now throws a type error when
returning a function asynchronously to catch potential mistakes around
callback functions
(see PR for migration instructions)
([#&#8203;8136](https://github.com/sveltejs/svelte/pull/8136))

- breaking: Overhaul and drastically improve creating custom elements
with Svelte (see PR for list of changes and migration instructions)
([#&#8203;8457](https://github.com/sveltejs/svelte/pull/8457))

- breaking: Deprecate `SvelteComponentTyped` in favor of
`SvelteComponent`
([#&#8203;8512](https://github.com/sveltejs/svelte/pull/8512))

- breaking: Make transitions local by default to prevent confusion
around page navigations
([#&#8203;6686](https://github.com/sveltejs/svelte/issues/6686))

- breaking: Error on falsy values instead of stores passed to `derived`
([#&#8203;7947](https://github.com/sveltejs/svelte/pull/7947))

- breaking: Custom store implementers now need to pass an `update`
function additionally to the `set` function
([#&#8203;6750](https://github.com/sveltejs/svelte/pull/6750))

- breaking: Do not expose default slot bindings to named slots and vice
versa ([#&#8203;6049](https://github.com/sveltejs/svelte/pull/6049))

- breaking: Change order in which preprocessors are applied
([#&#8203;8618](https://github.com/sveltejs/svelte/pull/8618))

- breaking: The runtime now makes use of `classList.toggle(name,
boolean)` which does not work in very old browsers
([#&#8203;8629](https://github.com/sveltejs/svelte/pull/8629))

- breaking: apply `inert` to outroing elements
([#&#8203;8628](https://github.com/sveltejs/svelte/pull/8628))

- breaking: use `CustomEvent` constructor instead of deprecated
`createEvent` method
([#&#8203;8775](https://github.com/sveltejs/svelte/pull/8775))

##### Minor Changes

- Add a way to modify attributes for script/style preprocessors
([#&#8203;8618](https://github.com/sveltejs/svelte/pull/8618))

- Improve hydration speed by adding `data-svelte-h` attribute to detect
unchanged HTML elements
([#&#8203;7426](https://github.com/sveltejs/svelte/pull/7426))

- Add `a11y no-noninteractive-element-interactions` rule
([#&#8203;8391](https://github.com/sveltejs/svelte/pull/8391))

- Add `a11y-no-static-element-interactions`rule
([#&#8203;8251](https://github.com/sveltejs/svelte/pull/8251))

- Allow `#each` to iterate over iterables like `Set`, `Map` etc
([#&#8203;7425](https://github.com/sveltejs/svelte/issues/7425))

- Improve duplicate key error for keyed `each` blocks
([#&#8203;8411](https://github.com/sveltejs/svelte/pull/8411))

- Warn about `:` in attributes and props to prevent ambiguity with
Svelte directives
([#&#8203;6823](https://github.com/sveltejs/svelte/issues/6823))

- feat: add version info to `window`. You can opt out by setting
`discloseVersion` to `false` in the compiler options
([#&#8203;8761](https://github.com/sveltejs/svelte/pull/8761))

- feat: smaller minified output for destructor chunks
([#&#8203;8763](https://github.com/sveltejs/svelte/pull/8763))

##### Patch Changes

- Bind `null` option and input values consistently
([#&#8203;8312](https://github.com/sveltejs/svelte/issues/8312))

- Allow `$store` to be used with changing values including nullish
values
([#&#8203;7555](https://github.com/sveltejs/svelte/issues/7555))

- Initialize stylesheet with `/* empty */` to enable setting CSP
directive that also works in Safari
([#&#8203;7800](https://github.com/sveltejs/svelte/pull/7800))

- Treat slots as if they don't exist when using CSS adjacent and general
sibling combinators
([#&#8203;8284](https://github.com/sveltejs/svelte/issues/8284))

- Fix transitions so that they don't require a `style-src
'unsafe-inline'` Content Security Policy (CSP)
([#&#8203;6662](https://github.com/sveltejs/svelte/issues/6662)).

- Explicitly disallow `var` declarations extending the reactive
statement scope
([#&#8203;6800](https://github.com/sveltejs/svelte/pull/6800))

- Improve error message when trying to use `animate:` directives on
inline components
([#&#8203;8641](https://github.com/sveltejs/svelte/issues/8641))

- fix: export ComponentType from `svelte` entrypoint
([#&#8203;8578](https://github.com/sveltejs/svelte/pull/8578))

- fix: never use html optimization for mustache tags in hydration mode
([#&#8203;8744](https://github.com/sveltejs/svelte/pull/8744))

- fix: derived store types
([#&#8203;8578](https://github.com/sveltejs/svelte/pull/8578))

- Generate type declarations with dts-buddy
([#&#8203;8578](https://github.com/sveltejs/svelte/pull/8578))

- fix: ensure types are loaded with all TS settings
([#&#8203;8721](https://github.com/sveltejs/svelte/pull/8721))

- fix: account for preprocessor source maps when calculating meta info
([#&#8203;8778](https://github.com/sveltejs/svelte/pull/8778))

- chore: deindent cjs output for compiler
([#&#8203;8785](https://github.com/sveltejs/svelte/pull/8785))

- warn on boolean compilerOptions.css
([#&#8203;8710](https://github.com/sveltejs/svelte/pull/8710))

- fix: export correct SvelteComponent type
([#&#8203;8721](https://github.com/sveltejs/svelte/pull/8721))

###
[`v3.59.2`](https://github.com/sveltejs/svelte/blob/HEAD/packages/svelte/CHANGELOG.md#&#8203;3592)

[Compare
Source](https://github.com/sveltejs/svelte/compare/v3.59.1...v3.59.2)

-   Fix escaping `<textarea bind:value={...}>` values in SSR

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/defenseunicorns/zarf).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjE0MS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wayne Starr <me@racer159.com>
  • Loading branch information
renovate[bot] and Racer159 committed Jun 28, 2023
1 parent dd54f24 commit bd5056e
Show file tree
Hide file tree
Showing 3 changed files with 382 additions and 106 deletions.
6 changes: 3 additions & 3 deletions src/ui/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', "plugin:svelte/recommended", 'prettier'],
plugins: ['@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
overrides: [{ files: ['*.svelte'], processor: 'svelte-eslint-parser' }],
settings: {
'svelte3/typescript': () => require('typescript'),
},
Expand Down
Loading

0 comments on commit bd5056e

Please sign in to comment.