alexander.akait
792ee7e516
refactor(types): more
2023-05-31 14:56:55 +00:00
Sean Larkin
30c6df29fc
Merge pull request #17267 from webpack/strict-types-for-wasm
...
refactor(types): wasm and runtime
2023-05-31 07:52:42 -07:00
Sean Larkin
557ea853ef
Merge pull request #15470 from webpack/feat/add-readonly-cache-mode
...
feat: add readonly cache mode
2023-05-31 07:43:51 -07:00
Sean Larkin
c4174269e7
Merge pull request #17266 from webpack/fix-regression-with-module-type
...
fix(types): regression with unknown types
2023-05-31 07:39:55 -07:00
alexander.akait
a7c4ed7efa
refactor(types): fix
2023-05-26 01:18:45 +03:00
alexander.akait
3591783d9e
refactor(types): wasm and runtime
2023-05-26 01:18:44 +03:00
Sean Larkin
8eb9d8cf4a
Merge pull request #17262 from webpack/types-for-assets
...
refactor: types for assets and json modules plus plugins
2023-05-25 14:52:56 -07:00
alexander.akait
5c55c19c9b
fix(types): regression with mini-css-extract-plugin
2023-05-25 19:41:29 +03:00
Shipov Mikhail
c3b643aa79
feat: add readonly flag for filesystem cache
2023-05-25 03:28:39 +03:00
Shipov Mikhail
85a963a67b
feat: add readonly flag for filesystem cache
2023-05-25 03:28:35 +03:00
alexander.akait
60e5e13eb8
refactor: more types
2023-05-25 01:41:32 +03:00
alexander.akait
8fceed08c9
refactor: strict types for runtime modules
2023-05-24 22:46:07 +03:00
Sean Larkin
56be17507f
chore(deps): Bump enhanced-resolve to ^5.14.1
2023-05-24 14:39:36 +00:00
Sean Larkin
3e910299b9
Merge pull request #17252 from snitin315/feat/appen-sourcemap-fn
...
feat(SourceMapDevToolPlugin): support append option as a function
2023-05-24 07:29:45 -07:00
Nitin Kumar
e7ae10a4dc
feat(SourceMapDevToolPlugin): support `append` option as a function
2023-05-24 11:19:08 +05:30
alexander.akait
214f7cd9fe
refactor: test and types
2023-05-24 00:29:08 +03:00
Sean Larkin
aeb1912378
Merge pull request #17236 from webpack/types-more
...
refactor: more types
2023-05-23 13:50:43 -07:00
alexander.akait
75e3ea5c84
refactor: more types for serialization
2023-05-22 21:32:23 +03:00
alexander.akait
f003f1c138
refactor: types more
2023-05-22 05:12:44 +03:00
alexander.akait
8e63b43b5e
refactor: types more
2023-05-22 04:50:50 +03:00
alexander.akait
30390058ef
refactor: types more
2023-05-22 03:46:58 +03:00
alexander.akait
e719e60340
refactor: types more
2023-05-22 03:03:05 +03:00
alexander.akait
78075cac67
refactor: types more
2023-05-22 01:28:57 +03:00
alexander.akait
055737dc0c
refactor(types): more
2023-05-21 23:31:30 +03:00
alexander.akait
71d60fafb4
refactor(types): more
2023-05-21 22:08:25 +03:00
alexander.akait
3b80086b65
fix: matcher type
2023-05-17 14:25:07 +03:00
Sean Larkin
1b6b741b96
docs(types): Add docs for compilation.afterChunks hook
2023-05-16 22:34:18 +00:00
Sean Larkin
53eccc3465
refactor(types): Expose ChunkGroup to type definitions
2023-05-16 21:43:02 +00:00
Sean Larkin
793a063de6
Merge pull request #17195 from webpack/thelarkinn/add-nmrp-types
...
refactor(types): Add NMF's ResolveData typed to public interface
2023-05-16 11:41:48 -07:00
Sean Larkin
cfc427e4aa
Add correct place to add ResolveData type
2023-05-16 14:49:07 +00:00
Sean Larkin
4fada307a7
fix(types): Correct chunkgroup.groupsIterable return type
2023-05-16 05:01:58 +00:00
Sean Larkin
64f70a47a9
refactor(types): Add NMF's ResolveData typed to public interface
2023-05-16 04:29:49 +00:00
Nitin Kumar
12f958869f
fix: udpate types
2023-05-09 21:40:59 +05:30
Sean Larkin
f21b30adb9
yarn fix
2023-05-04 23:32:36 +00:00
Sean Larkin
e958ac552b
refactor(types): Improve module type strictness and refactor module type string usages in module subclasses
2023-05-04 23:19:11 +00:00
Michael Zlatkovsky
83d14b13e1
Merge remote-tracking branch 'origin/main' into zlatkovsky/trusted-types-options
2023-05-02 14:58:15 -07:00
Michael Zlatkovsky
2203e24900
Add option to continue on trusted-types policy-creation failure
...
Webpack already allows for specifying a trusted-types policy name. However, its current implementation is such that if a call to trustedTypes.createPolicy fails, the code will immediately stop executing. This isn't necessarily desirable, as an application could be in the early phases of rolling out trusted types, and thus have the CSP rule for trusted-types LibraryA LibraryB etc, BUT have require-trusted-types-for 'script' be in "report only" mode (Content-Security-Policy-Report-Only). In such a configuration, and when the webpacked code is dynamically-loaded into an application, adding the policy name to the webpack config will break old versions.
This PR keeps the original behavior, but introduces a new option for onPolicyCreationFailure: "continue" | "stop" (with "stop" remaining the default). If a developer chooses the "continue" option, the policy-creation will be wrapped in a try/catch. There is no security risk to this, since for host applications that DO have strict enforcement of trusted-types, the code will simply fail when the dangerous sink is used (e.g., when doing parseFromString). And likewise, wrapping in try/catch and doing nothing on catch is OK, because the code already deals with the possibility of the trustedTypes API not being available on the browser.
2023-05-02 10:12:56 -07:00
alexander.akait
3498d5fb97
chore: update types
2023-05-02 12:55:44 +03:00
Sean Larkin
f3389577ef
refactor(types): Increase type coverage & docs for B.E.E
2023-04-28 19:21:02 +00:00
Sean Larkin
a051a7be54
add new type updates supporting the new type coverage in parser
2023-04-28 18:06:33 +00:00
Sean Larkin
5b20c9af1c
Merge pull request #17057 from webpack/import-support
...
feat: CSS import and allow to hook module creation
2023-04-26 04:14:45 -07:00
Sean Larkin
2c6dc778ab
Merge pull request #16388 from indeediansbrett/feat/issue-16374
...
feat: ignoreBrowserWarnings option to ignore browser console warnings
2023-04-25 20:51:46 -07:00
alexander.akait
4b287e1bad
fix: types
2023-04-25 19:37:59 +03:00
Rômulo Ruas
3712e9af4c
Sort type exports alphabetically
2023-04-24 16:51:47 +02:00
Rômulo Ruas
8a5b66e758
Export MemoryCacheOptions in types.d.ts
2023-04-24 15:19:43 +02:00
Sean Larkin
3026ad9b81
types(coverage): Increase type coverage of ModuleFilenameHelpers
2023-04-23 02:43:51 +00:00
alexander.akait
94b594511e
fix: types
2023-04-22 05:42:04 +03:00
alexander.akait
713b187c2d
fix: types
2023-04-22 05:26:43 +03:00
alexander.akait
7a929533dd
fix: types
2023-04-22 04:18:17 +03:00
alexander.akait
4f6dc32d38
chore: improve types
2023-04-21 19:22:33 +03:00