Commit Graph

15831 Commits

Author SHA1 Message Date
alexander.akait 0191e366b9 refactor: code 2023-05-05 02:53:57 +03:00
alexander.akait d6e678792e refactor: code 2023-05-05 02:49:09 +03:00
alexander.akait 9e927fe2b2 fix: handle `var()` function in at-rules 2023-05-05 02:37:24 +03:00
alexander.akait 14660fee75 refactor: logic 2023-05-05 02:20:26 +03:00
alexander.akait 410b964737 fix: avoid extra space 2023-05-05 02:05:37 +03:00
alexander.akait 8b0a90a1a4 fix: handle nested syntax 2023-05-05 01:52:08 +03:00
alexander.akait b521a4d781 test: more 2023-05-05 01:24:34 +03:00
alexander.akait 9402ed2970 refactor: prepare 2023-05-05 01:13:27 +03:00
alexander.akait 8e1d5ef4ae refactor: more types 2023-05-05 00:38:41 +03:00
alexander.akait 5b58a0f095 fix: bug wrong dependency position 2023-05-05 00:27:59 +03:00
alexander.akait 3074eaabf4 fix: bug with animation rename 2023-05-04 23:59:30 +03:00
alexander.akait 79d1edc5a2 fix: bug with nested indentifier 2023-05-04 23:41:12 +03:00
alexander.akait 6f2c2140b7 test: more 2023-05-04 23:37:19 +03:00
alexander.akait 4c8764449b refactor: logic 2023-05-04 23:01:16 +03:00
alexander.akait 5cd2e0dd4a fix: logic 2023-05-04 22:40:00 +03:00
alexander.akait 252c1e606b refactor: logic 2023-05-04 22:24:13 +03:00
alexander.akait 72559325ca refactor: logic 2023-05-04 21:56:12 +03:00
alexander.akait e21392ca2e refactor: types and better name 2023-05-04 21:28:09 +03:00
alexander.akait 2c79741042 refactor: put id and class together 2023-05-04 21:26:32 +03:00
alexander.akait 3a0f49ed5c fix: do not reset mode after semicolon 2023-05-04 21:25:23 +03:00
alexander.akait 5379952451 fix: improve error message 2023-05-04 20:50:29 +03:00
alexander.akait c3cfc6775f fix: bug with container and unknown at-rules 2023-05-04 20:24:37 +03:00
alexander.akait 2a4725750e fix: bug 2023-05-04 19:47:38 +03:00
alexander.akait 65bf52de87 fix: bug 2023-05-04 19:18:13 +03:00
alexander.akait 4e8f8144fd fix: perf 2023-05-04 18:21:57 +03:00
alexander.akait fb1d14e64a test: more 2023-05-04 17:59:39 +03:00
alexander.akait a06fea8e8c test: more 2023-05-04 17:43:49 +03:00
alexander.akait a8964745de fix: avoid extra check 2023-05-04 17:34:48 +03:00
alexander.akait 8c0fc4de86 refactor: remove nothing code 2023-05-04 16:39:40 +03:00
alexander.akait fce1f4a921 test: nested CSS 2023-05-04 16:02:43 +03:00
alexander.akait 9faee74103 test: more 2023-05-04 15:26:00 +03:00
alexander.akait fdcf4c4af6 fix: handle `@property` 2023-05-04 14:50:11 +03:00
alexander.akait 8f2fd02363 fix: handle `@layer` 2023-05-04 14:38:10 +03:00
Sean Larkin 1018ca80b3 5.82.0 2023-05-03 17:03:15 +00:00
Sean Larkin 0023a8f43b
Merge pull request #17118 from webpack/fix-do-not-parse-broken-import
fix: any @import rules must precede all other rules
2023-05-03 09:43:03 -07:00
Sean Larkin ddb9627661
Merge pull request #16990 from Zlatkovsky/zlatkovsky/trusted-types-options
Allow specifying "onPolicyCreationFailure" mode for trusted types
2023-05-03 09:39:48 -07:00
Sean Larkin ffcb480ad1
Merge pull request #17115 from webpack/fix-css-nested-output
fix: respect `media`/`supports`/`layer` from parent CSS module
2023-05-03 09:34:24 -07:00
Sean Larkin 12d477df73
Merge pull request #17107 from webpack/some-types
refactor(type): small improve
2023-05-03 09:27:47 -07:00
Sean Larkin 75b9e76f07
Merge pull request #17116 from webpack/fix-hash-in-url
fix: handle `#hash` URL as external
2023-05-03 09:25:09 -07:00
Sean Larkin 4fb73da284
Merge pull request #16945 from snitin315/feat/url-deps-mf
feat: add URL dependencies support to consume shared module via module federation
2023-05-03 09:21:45 -07:00
Michael Zlatkovsky 83d14b13e1 Merge remote-tracking branch 'origin/main' into zlatkovsky/trusted-types-options 2023-05-02 14:58:15 -07:00
Sean Larkin b471a6bfb7
Merge pull request #17113 from burhanuday/feat/update-types-extends
feat: update webpack types to support extends property in webpack
2023-05-02 13:57:37 -07:00
Michael Zlatkovsky c67b17bee3 Updated "Defaults.unittest.js" 2023-05-02 13:47:54 -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 641db80879 test: more 2023-05-02 14:36:46 +03:00
alexander.akait 8f374c60d4 test: fix 2023-05-02 14:24:39 +03:00
alexander.akait e80bf86055 fix: do not handle keyframes in global mode 2023-05-02 14:23:58 +03:00
alexander.akait dd89b19c1a chore: fix lint 2023-05-02 13:12:41 +03:00
alexander.akait ce4bb33bb2 test: update 2023-05-02 13:08:09 +03:00
alexander.akait 3498d5fb97 chore: update types 2023-05-02 12:55:44 +03:00