GeezerVison is showing github.com — fix: improve types for `webpack-sources` by snitin315 · Pull Request #16805 · webpack/webpack
Conversation
What kind of change does this PR introduce?
Improve types for webpack-sources.
Resolve #12294
Did you add tests for your changes?
No,
Does this PR introduce a breaking change?
No.
What needs to be documented once your changes are merged?
Nothing.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
For maintainers only:
- This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
- This needs to be backported to webpack 4 (issue will be created when merged)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
andrewpollock
referenced
this pull request
in google/osv.dev
Mar 23, 2023
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [lit](https://lit.dev/) ([source](https://togithub.com/lit/lit)) |
[`2.6.1` -> `2.7.0`](https://renovatebot.com/diffs/npm/lit/2.6.1/2.7.0)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
|
[mini-css-extract-plugin](https://togithub.com/webpack-contrib/mini-css-extract-plugin)
| [`2.7.2` ->
`2.7.5`](https://renovatebot.com/diffs/npm/mini-css-extract-plugin/2.7.2/2.7.5)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [sass](https://togithub.com/sass/dart-sass) | [`1.58.3` ->
`1.59.3`](https://renovatebot.com/diffs/npm/sass/1.58.3/1.59.3) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [style-loader](https://togithub.com/webpack-contrib/style-loader) |
[`3.3.1` ->
`3.3.2`](https://renovatebot.com/diffs/npm/style-loader/3.3.1/3.3.2) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [webpack](https://togithub.com/webpack/webpack) | [`5.76.0` ->
`5.76.3`](https://renovatebot.com/diffs/npm/webpack/5.76.0/5.76.3) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [webpack-dev-server](https://togithub.com/webpack/webpack-dev-server)
| [`4.11.1` ->
`4.13.1`](https://renovatebot.com/diffs/npm/webpack-dev-server/4.11.1/4.13.1)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>lit/lit</summary>
###
[`v2.7.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit/CHANGELOG.md#​270)
[Compare
Source](https://togithub.com/lit/lit/compare/[email protected]@2.7.0)
##### Minor Changes
- [#​3677](https://togithub.com/lit/lit/pull/3677)
[`b95c86e5`](https://togithub.com/lit/lit/commit/b95c86e5ec0e2f6de63a23409b9ec489edb61b86)
- \[SSR only] Reflect ARIA attributes onto server rendered Lit elements
with attached internals during SSR and remove them upon hydration.
- [#​3667](https://togithub.com/lit/lit/pull/3667)
[`e00f6f52`](https://togithub.com/lit/lit/commit/e00f6f52199d5dbc08d4c15f62380422e77cde7f)
- \[SSR only] Improved how nodes with attribute/property/event/element
bindings are rendered in SSR, to avoid adding comments inside of "raw
text elements" like `<textarea>`. Fixes
[#​3663](https://togithub.com/lit/lit/issues/3663).
Note: `@lit-labs/ssr` and `lit-html` must be updated together.
##### Patch Changes
- [#​3583](https://togithub.com/lit/lit/pull/3583)
[`88a40177`](https://togithub.com/lit/lit/commit/88a40177de9be5d117a21e3da5414bd777872544)
- \[SSR only] Add more detail to some hydration errors
- Updated dependencies
\[[`4d698430`](https://togithub.com/lit/lit/commit/4d698430b38efa49c97b841238b331340af5fef0),
[`b95c86e5`](https://togithub.com/lit/lit/commit/b95c86e5ec0e2f6de63a23409b9ec489edb61b86),
[`e00f6f52`](https://togithub.com/lit/lit/commit/e00f6f52199d5dbc08d4c15f62380422e77cde7f),
[`88a40177`](https://togithub.com/lit/lit/commit/88a40177de9be5d117a21e3da5414bd777872544)]:
- [email protected]
- [email protected]
</details>
<details>
<summary>webpack-contrib/mini-css-extract-plugin</summary>
###
[`v2.7.5`](https://togithub.com/webpack-contrib/mini-css-extract-plugin/blob/HEAD/CHANGELOG.md#​275-httpsgithubcomwebpack-contribmini-css-extract-plugincomparev274v275-2023-03-16)
[Compare
Source](https://togithub.com/webpack-contrib/mini-css-extract-plugin/compare/v2.7.4...v2.7.5)
###
[`v2.7.4`](https://togithub.com/webpack-contrib/mini-css-extract-plugin/blob/HEAD/CHANGELOG.md#​274-httpsgithubcomwebpack-contribmini-css-extract-plugincomparev273v274-2023-03-16)
[Compare
Source](https://togithub.com/webpack-contrib/mini-css-extract-plugin/compare/v2.7.3...v2.7.4)
###
[`v2.7.3`](https://togithub.com/webpack-contrib/mini-css-extract-plugin/blob/HEAD/CHANGELOG.md#​273-httpsgithubcomwebpack-contribmini-css-extract-plugincomparev272v273-2023-03-07)
[Compare
Source](https://togithub.com/webpack-contrib/mini-css-extract-plugin/compare/v2.7.2...v2.7.3)
</details>
<details>
<summary>sass/dart-sass</summary>
###
[`v1.59.3`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#​1593)
[Compare
Source](https://togithub.com/sass/dart-sass/compare/1.59.2...1.59.3)
- Fix a performance regression introduced in 1.59.0.
- The NPM release of 1.59.0 dropped support for Node 12 without actually
indicating so in its pubspec. This release temporarily adds back support
so
that the latest Sass version that declares it supports Node 12 actually
does
so. However, Node 12 is now end-of-life, so we will drop support for it
properly in an upcoming release.
###
[`v1.59.2`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#​1592)
[Compare
Source](https://togithub.com/sass/dart-sass/compare/1.59.1...1.59.2)
- No user-visible changes.
###
[`v1.59.1`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#​1591)
[Compare
Source](https://togithub.com/sass/dart-sass/compare/1.59.0...1.59.1)
- No user-visible changes.
###
[`v1.59.0`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#​1590)
[Compare
Source](https://togithub.com/sass/dart-sass/compare/1.58.3...1.59.0)
##### Command Line Interface
- Added a new `--fatal-deprecation` flag that lets you treat a
deprecation
warning as an error. You can pass an individual deprecation ID
(e.g. `slash-div`) or you can pass a Dart Sass version to treat all
deprecations initially emitted in that version or earlier as errors.
- New `--future-deprecation` flag that lets you opt into warning for use
of
certain features that will be deprecated in the future. At the moment,
the
only option is `--future-deprecation=import`, which will emit warnings
for
Sass `@import` rules, which are not yet deprecated, but will be in the
future.
##### Dart API
- New `Deprecation` enum, which contains the different current and
future
deprecations used by the new CLI flags.
- The `compile` methods now take in `fatalDeprecations` and
`futureDeprecations`
parameters, which work similarly to the CLI flags.
</details>
<details>
<summary>webpack-contrib/style-loader</summary>
###
[`v3.3.2`](https://togithub.com/webpack-contrib/style-loader/blob/HEAD/CHANGELOG.md#​332-httpsgithubcomwebpack-contribstyle-loadercomparev331v332-2023-03-13)
[Compare
Source](https://togithub.com/webpack-contrib/style-loader/compare/v3.3.1...v3.3.2)
</details>
<details>
<summary>webpack/webpack</summary>
###
[`v5.76.3`](https://togithub.com/webpack/webpack/releases/tag/v5.76.3)
[Compare
Source](https://togithub.com/webpack/webpack/compare/v5.76.2...v5.76.3)
#### Bugfixes
- Non-javascript files will correctly **not** be imported when using
`experiments.outputModule` (ES Module Output) by
[@​snitin315](https://togithub.com/snitin315) in
[https://github.com/webpack/webpack/pull/16809](https://togithub.com/webpack/webpack/pull/16809)
- Limit console output progress bar length to 40 when no columns
provided by [@​snitin315](https://togithub.com/snitin315) in
[https://github.com/webpack/webpack/pull/16810](https://togithub.com/webpack/webpack/pull/16810)
- Add missing NodeJS Builtin Modules support for `inspector/promises`,
`readline/promises`, and `stream/consumers` by
[@​ShenHongFei](https://togithub.com/ShenHongFei) in
[https://github.com/webpack/webpack/pull/16841](https://togithub.com/webpack/webpack/pull/16841)
- webpack bin/cli now properly respects `NODE_PATH` env variable by
[@​snitin315](https://togithub.com/snitin315) in
[https://github.com/webpack/webpack/pull/16808](https://togithub.com/webpack/webpack/pull/16808)
- Improve typos in `resolveResourceErrorHints` by
[@​snitin315](https://togithub.com/snitin315) in
[https://github.com/webpack/webpack/pull/16806](https://togithub.com/webpack/webpack/pull/16806)
- Add missing `loaders` token support to `moduleFilenameTemplate`
function call by [@​pgoldberg](https://togithub.com/pgoldberg) in
[https://github.com/webpack/webpack/pull/16756](https://togithub.com/webpack/webpack/pull/16756)
- Add gaurd condition for `enabledLibraryTypes` in internal
`ContainerPlugin` by
[@​PengBoUESTC](https://togithub.com/PengBoUESTC) in
[https://github.com/webpack/webpack/pull/16635](https://togithub.com/webpack/webpack/pull/16635)
#### New Contributors
- [@​ShenHongFei](https://togithub.com/ShenHongFei) made their
first contribution in
[https://github.com/webpack/webpack/pull/16841](https://togithub.com/webpack/webpack/pull/16841)
- [@​pgoldberg](https://togithub.com/pgoldberg) made their first
contribution in
[https://github.com/webpack/webpack/pull/16756](https://togithub.com/webpack/webpack/pull/16756)
- [@​PengBoUESTC](https://togithub.com/PengBoUESTC) made their
first contribution in
[https://github.com/webpack/webpack/pull/16635](https://togithub.com/webpack/webpack/pull/16635)
**Full Changelog**:
webpack/webpack@v5.76.2...v5.76.3
###
[`v5.76.2`](https://togithub.com/webpack/webpack/releases/tag/v5.76.2)
[Compare
Source](https://togithub.com/webpack/webpack/compare/v5.76.1...v5.76.2)
#### Bugfixes
- Fix bug where a missing semicolon in generated bundle output for
`publicPathRuntime` would cause concatenated runtime errors by
[@​snitin315](https://togithub.com/snitin315) in
[https://github.com/webpack/webpack/pull/16811](https://togithub.com/webpack/webpack/pull/16811)
- Remove redundant semicolons generated in bundle runtime code after
`onScriptComplete` function by
[@​ahaoboy](https://togithub.com/ahaoboy) in
[https://github.com/webpack/webpack/pull/16347](https://togithub.com/webpack/webpack/pull/16347)
- Fix bug where `RealContentHashPlugin` was not respecting
`output.hashSalt`'s ability to cause a force recalculation of
`[contenthash]` for emitted assets by
[@​dmichon-msft](https://togithub.com/dmichon-msft)
[#​16789](https://togithub.com/webpack/webpack/issues/16789)
#### Performance
- Improve memory and runtime performance of sourcemaps via hoisting
Regular Expression literals to stored variables by
[@​TheLarkInn](https://togithub.com/TheLarkInn) in
[https://github.com/webpack/webpack/pull/15722](https://togithub.com/webpack/webpack/pull/15722)
- Correct v8 deoptimization in `ModuleGraph` due to instance property
declarations occurring outside of constructor by
[@​snitin315](https://togithub.com/snitin315) in
[https://github.com/webpack/webpack/pull/16830](https://togithub.com/webpack/webpack/pull/16830)
#### Developer Experience
- Improved internal typings to match `webpack-sources` typings for
`Source` instances by
[@​snitin315](https://togithub.com/snitin315) in
[https://github.com/webpack/webpack/pull/16805](https://togithub.com/webpack/webpack/pull/16805)
- Update repo examples to include missing quotation by
[@​snitin315](https://togithub.com/snitin315) in
[https://github.com/webpack/webpack/pull/16812](https://togithub.com/webpack/webpack/pull/16812)
#### New Contributors
- [@​ahaoboy](https://togithub.com/ahaoboy) made their first
contribution in
[https://github.com/webpack/webpack/pull/16347](https://togithub.com/webpack/webpack/pull/16347)
**Full Changelog**:
webpack/webpack@v5.76.1...v5.76.2
###
[`v5.76.1`](https://togithub.com/webpack/webpack/releases/tag/v5.76.1)
[Compare
Source](https://togithub.com/webpack/webpack/compare/v5.76.0...v5.76.1)
#### Fixed
- Added `assert/strict` built-in to `NodeTargetPlugin`
#### Revert
- Improve performance of `hashRegExp` lookup by
[@​ryanwilsonperkin](https://togithub.com/ryanwilsonperkin) in
[https://github.com/webpack/webpack/pull/16759](https://togithub.com/webpack/webpack/pull/16759)
</details>
<details>
<summary>webpack/webpack-dev-server</summary>
###
[`v4.13.1`](https://togithub.com/webpack/webpack-dev-server/blob/HEAD/CHANGELOG.md#​4131-httpsgithubcomwebpackwebpack-dev-servercomparev4130v4131-2023-03-18)
[Compare
Source](https://togithub.com/webpack/webpack-dev-server/compare/v4.13.0...v4.13.1)
###
[`v4.13.0`](https://togithub.com/webpack/webpack-dev-server/blob/HEAD/CHANGELOG.md#​4130-httpsgithubcomwebpackwebpack-dev-servercomparev4120v4130-2023-03-17)
[Compare
Source](https://togithub.com/webpack/webpack-dev-server/compare/v4.12.0...v4.13.0)
##### Features
- added `client.overlay.runtimeErrors` option to control runtime errors
([#​4773](https://togithub.com/webpack/webpack-dev-server/issues/4773))
([dca2366](https://togithub.com/webpack/webpack-dev-server/commit/dca2366e22a262e6052dae060c8b237f4e6fd26b))
###
[`v4.12.0`](https://togithub.com/webpack/webpack-dev-server/blob/HEAD/CHANGELOG.md#​4120-httpsgithubcomwebpackwebpack-dev-servercomparev4111v4120-2023-03-14)
[Compare
Source](https://togithub.com/webpack/webpack-dev-server/compare/v4.11.1...v4.12.0)
##### Features
- allow to set the `sockjs_url` option (only `sockjs`) using the
`webSocketServer.options.sockjsUrl` option
([#​4586](https://togithub.com/webpack/webpack-dev-server/issues/4586))
([69a2fba](https://togithub.com/webpack/webpack-dev-server/commit/69a2fba4e915b4814de1c3cb27930a13dc994945))
- catch runtime error
([#​4605](https://togithub.com/webpack/webpack-dev-server/issues/4605))
([87a26cf](https://togithub.com/webpack/webpack-dev-server/commit/87a26cf4c1fd9ac8140d345a8520a8d5cb059556))
- improve styles for overlay
([#​4576](https://togithub.com/webpack/webpack-dev-server/issues/4576))
([791fb85](https://togithub.com/webpack/webpack-dev-server/commit/791fb85931299eea052b3c37d4353d48ea34fa5e))
- open editor when clicking error on overlay
([#​4587](https://togithub.com/webpack/webpack-dev-server/issues/4587))
([efb2cec](https://togithub.com/webpack/webpack-dev-server/commit/efb2cec3f8acbbe5113aad20529e268c01ac29c2))
##### Bug Fixes
- compatibility with `experiments.buildHttp`
([#​4585](https://togithub.com/webpack/webpack-dev-server/issues/4585))
([5b846cb](https://togithub.com/webpack/webpack-dev-server/commit/5b846cbe9bfb8444bc7605654fcebf4e87766aa4))
- respect `NODE_PATH` env variable
([#​4581](https://togithub.com/webpack/webpack-dev-server/issues/4581))
([b857e6f](https://togithub.com/webpack/webpack-dev-server/commit/b857e6fa3b86facc63811438eef17be92dc36dc6))
#####
[4.11.1](https://togithub.com/webpack/webpack-dev-server/compare/v4.11.0...v4.11.1)
(2022-09-19)
##### Bug Fixes
- respect `client.logging` option for all logs
([#​4572](https://togithub.com/webpack/webpack-dev-server/issues/4572))
([375835c](https://togithub.com/webpack/webpack-dev-server/commit/375835c926ec03fdfecae9ab1b54fd43b1ff4b31))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 6am on wednesday" in timezone
Australia/Sydney, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.
---
- [ ] <!-- 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://app.renovatebot.com/dashboard#github/google/osv.dev).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTkuMSIsInVwZGF0ZWRJblZlciI6IjM1LjE0LjIifQ==-->
This was referenced Apr 7, 2023
This was referenced Jun 21, 2023
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Projects
No open projects
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|