๐ฆ Update dependency esbuild to v0.13.2#35928
Merged
Conversation
habarahonaa
approved these changes
Sep 5, 2021
rsimha
approved these changes
Sep 21, 2021
287a598 to
8942e8f
Compare
8942e8f to
823681d
Compare
AnuragVasanwala
added a commit
to rtCamp/amphtml
that referenced
this pull request
Oct 6, 2021
* tickevents: remove unused enum values (ampproject#36159) * tickevents: remove unused enum values * Remove dupe of CLS, fidv, lj1,lj2 * format * ๐ฆ Update cimg/openjdk Docker tag to v17 (ampproject#36172) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency rollup to v2.57.0 (ampproject#36134) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency @octokit/graphql to v4.7.0 (ampproject#35844) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * โป๏ธ Migrate `observeWithSharedInOb` to `observeIntersections` (ampproject#36106) * ๐ Make setup-node step consistent across gh actions (ampproject#36175) * Partially revert "๐ Parallelize `dist` steps (ampproject#35943)" (ampproject#36176) * Revert "๐ Parallelize `dist` steps (ampproject#35943)" This reverts commit 1e2c808. * Partially allow parallelization for smaller tasks * Also include `compileAllJs` in the parallelized part * (amp-lightbox-gallery): opens to selected image, resolve ampproject#35920 (ampproject#36103) removed a unlayout call that would cause the image to default to the first slide * โป๏ธ preact inob: small cleanup (ampproject#36177) * preact inob: small cleanup * also remove current * build-system: only write version.txt once per dir (ampproject#36162) * build-system: only write version.txt once * output full set of * sort the paths * write files...not directories * succinct format * bind-impl: missing ampStateEl is a user error (ampproject#36113) * Update Yandex & ADFOX amp-ad codes (ampproject#35442) * ๐งชUpdate OT token for attribution-reporting (ampproject#36181) * ๐ Add `exports` for stylesheets to `package.json` (ampproject#36027) * Add styles.css export to package.json * Conditionally add export * Use `fast-glob` * Add separate export entry for each stylesheet * window support * sort for lint Co-authored-by: Jake Fried <samouri@users.noreply.github.com> * โจ [bento][amp-iframe] Add validator rules for 1.0 (ampproject#36182) * ๐ฎ Sweep experiments older than 2021-02-01 (ampproject#35486) Sweep experiments last flipped globally up to 2021-02-01: - (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1 * UTF8 encoding/decoding library to deprecated utf8 functions in strings.h|cc (ampproject#36184) library. PiperOrigin-RevId: 398102411 Co-authored-by: Amaltas Bohra <amaltas@google.com> * Validator rollup (ampproject#36185) * cl/398081751 Use the proto message number instead of index for enums. * cl/398323481 Two-way sync for PR ampproject#36085. No-op, or fixes merge conflicts, if any. Co-authored-by: honeybadgerdontcare <sedano@google.com> * ๐ฆ Update dependency @octokit/rest to v18.11.2 (ampproject#36180) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * deps: bump bento-compiler (ampproject#36191) * ๐ฆ Update dependency @jest/core to v27.2.3 (ampproject#36189) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency esbuild to v0.12.25 (ampproject#35928) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update linting devDependencies (ampproject#36119) * ๐ฆ Update linting devDependencies * Fix lint errors Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> Co-authored-by: Raghu Simha <rsimha@amp.dev> * ๐ฆ Update dependency axios to 0.21.2 [SECURITY] (ampproject#35999) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency esbuild to v0.13.3 (ampproject#36198) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency tar to v6.1.9 [SECURITY] (ampproject#35509) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * performance-impl: cant check ampdoc vis hidden while null (ampproject#36197) * performance-impl: cant check ampdoc vis hidden before initted * Add unit test * ๐ Add nice colors to release tagger logs (ampproject#36200) * log * comment * ๐ฆ Update core devDependencies (ampproject#36196) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency @ampproject/worker-dom to v0.32.0 (ampproject#36138) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency google-closure-library to v20210808 (ampproject#35617) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * SwG Release 0.1.22.186 (ampproject#36202) * ๐ฆ Update dependency chromedriver to v94 (ampproject#35951) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> Co-authored-by: Raghu Simha <rsimha@amp.dev> * ๐ฆ Update dependency tar to v6.1.11 (ampproject#36203) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ `bento-facebook` Documentation (ampproject#36038) * [`bento-facebook`] Update the amp-facebook.md file for both 0.1 and 1.0. Add a README.md for 1.0 bento mode. * [`bento-facebook`] Add documentation to describe the amp-facebook usage outside of valid AMP docs. * [`bento-facebook`] Add readme.md for BentoFacebook. * [`bento-facebook`] Address PR comments to update some attribute names. * [`bento-facebook`] Update CDN link to bento-facebook-1.0.js. * [`bento-facebook`] Prettify amp-facebook.md. * [`bento-facebook`] Update dead link to FB documentation to a real link. * [`bento-facebook`] Update dead links to be valid. * ๐ฎ Clean up dead amp-sidebar code within stories (ampproject#36178) * Remove amp-sidebar code from extensions/amp-story * Remove amp-sidebar visual tests from examples/visual-tests/amp-story * Remove reference to amp-sidebar from amp-story-interactive README * Remove remaining amp-sidebar logic from extensions/amp-story * Remove amp-sidebar logic from amp-story-system-layer code * Remove amp-sidebar code from amp-story-store-service.js * Remove amp-sidebar storybook JS files * A few missed deletions in test-amp-story and build-system/ caught by linter * Revert extensions/amp-sidebar/*/storybook removal from forbidden terms * Add back the amp-sidebar storybook files * Add newline at end of each storybook file * Run amp get-zindex --fix * ๐ [amp-story-panning-media] Set width on amp-img el (ampproject#36217) * Set width on amp-img el. * Add height * ๐ฆ Update dependency @octokit/rest to v18.11.3 (ampproject#36212) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency eslint-plugin-react to v7.26.1 (ampproject#36214) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency @ampproject/bento-compiler to v0.0.9 (ampproject#36225) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * โป๏ธDon't fetch crypto signature verifier in no-signing (ampproject#36187) * ๐ Force transfer of `amp-consent` element to the `FixedLayer` (ampproject#36223) Fixes ampproject#36063 `amp-consent` explicitly adds itself to the `FixedLayer`, transferring itself before the iframe is loaded. On a later pass, `FixedLayer` decides that `amp-consent` is not transferrable, so it returns it to the original `<body>` element. Enabling `forceTransfer` causes the return reparenting to not occur, thus preventing the iframe from loading a second time. * ๐ฆ Update core dependencies (ampproject#35061) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency rollup to v2.58.0 (ampproject#36232) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency @octokit/rest to v18.11.4 (ampproject#36227) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * [bento][amp-iframe] Add README (ampproject#36210) * [bento][amp-iframe] changes to publish to npm (ampproject#36190) * ๐ fix broken link to Preact/React component section in various README (ampproject#36222) * ๐ release: Update self-hosting support to use amp release (ampproject#36165) * Update self-host to use amp release `amp release` copies static files and downloaded resources to supplement an `amp dist` runtime. Support custom release flavor definitions and update the amp-framework-hosting documentation. * Fix typo in documentation * Prefer accessing argv instead of passing value * Skip cleaning custom configs by default * Review suggestions * [amp-iframe] iframe viewability (ampproject#36131) * bento amp-iframe: guard effect from running without a win (ampproject#36241) * ๐ babel/terser: rename all amp privates with sentinel suffix (ampproject#36143) * configs: Separate user configs from output files (ampproject#36236) Identify user configuration files under build-system/global-configs as distinct from generated output. This will help avoid accidentally including them in the cleanup script in the future. * Fix ref issue in DisplayAsWithRef component * Update the fix Co-authored-by: Jake Fried <samouri@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> Co-authored-by: dmanek <506183+dmanek@users.noreply.github.com> Co-authored-by: Esther Kim <44627152+estherkim@users.noreply.github.com> Co-authored-by: Daniel Rozenberg <rodaniel@amp.dev> Co-authored-by: William Johnson <dethstrobe@gmail.com> Co-authored-by: Mikhail Troshev <mishanga@yandex-team.ru> Co-authored-by: Caleb Cordry <ccordry@google.com> Co-authored-by: Pascal Birchler <pascalb@google.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Allan Banaag <banaag@google.com> Co-authored-by: Amaltas Bohra <amaltas@google.com> Co-authored-by: honeybadgerdontcare <sedano@google.com> Co-authored-by: Raghu Simha <rsimha@amp.dev> Co-authored-by: qidonna <968756+qidonna@users.noreply.github.com> Co-authored-by: rebeccanthomas <64608436+rebeccanthomas@users.noreply.github.com> Co-authored-by: Corey Masanto <masanto@google.com> Co-authored-by: Philip Bell <philipbell@google.com> Co-authored-by: Alan Orozco <alanorozco@users.noreply.github.com> Co-authored-by: Matt Mower <mdmower@cmphys.com> Co-authored-by: Anurag Vasanwala <75766877+AnuragVasanwala@users.noreply.github.com>
dethstrobe
added a commit
that referenced
this pull request
Apr 12, 2022
* โจ Initial Commit * โป๏ธ Attributes mapped to props * โป๏ธ Base skeleton with references * โป๏ธ Added build functions and ๐ CSS * ๐งช Experimental commit for `Gesture` Service * โป๏ธ Added `Gesture`, `Mouse` and `Keyboard` Service `prettify` is also performed. * Added `"npm": true` for build-system compilation config Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐ฎ Removed validator file until rules are added Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐ฎ Removed unnecessary example code Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐ฎ Removed `copyright` header from all files Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ Cleanup * ๐ฎ Renoved `Services` Services should not be used in the Preact component. Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐งช Experiment commit, ๐ฎ Remvoed test `console.log` * ๐ Added and Formatted `JSS` & `CSS` Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐ Minor fixes for `JSS` * โป๏ธ `shouldHintReappear` renamed to more precise name `repeatHint` Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐งช Experimental Test: `DOM` APIs to `JSX` Preact component should not be creating any elements with DOM APIs. Preferring JSX instead. This is an experimental code for my storybook test. * โป๏ธ Minor fixes and Cleanup * โจ Added `seekTo` API Function * โป๏ธ Minor fix to initialise base class * โป๏ธ Added classes on the JSX node * โช Removed `CSS` Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ `ActionTrust` set for only user interaction `DEFAULT` is needed for user interaction whereas `LOW` events could include things like autoplaying carousels. Thus, `DEFAULT` is recommended! Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ Removed unnecessary initialisation and import Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ `ImageSlider` prefixed with `Bento` The one exception that can stay `ImageSlider` is Storybooks. So, the Storybooks are still alphabetised and searchable without getting clogged up by the `Bento` prefix noise. Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ Preact storybook updated with new prefix `Bento` Preact Storybook `title` should be left as `ImageSlider` so it is still alphabetised and searchable without getting clogged up by the `Bento` prefix noise. Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ `classList` changed with `class` Always prefer `class` to `classList`. Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ `initial-slider-position` type corrected to `number` Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐ Bug fix for `images` and `labels` Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ Updated storybook examples Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐ฎ Cleanup unnecessary storybook comment * โป๏ธ `disable-hint-reappear` renamed as `display-hint-once` in Bento `1.0` The intention is to not have an attribute with a negative name, since enabling or disabling it can be confusing to reason about. On second thought, `repeat-hint` is not a good alternative because it flips the default behaviour when omitted. Let's rename to `display-hint-once` or similar, which has the same default omitted/provided behaviour, but perhaps a clearer name. Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โช Changes to markdown reverted and moved to `0.1` Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โจ Added markdown for `1.0` Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐ Fix for Preact Component API Co-authored-by: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐ Minor bug fixes Co-authored-by: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ Validation check added for `percent` attribute Co-authored-by: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ Updated use of `DisplayAs` as a component Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ `BentoImageSliderApi` namespace renamed to `Api` for precise meaning Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * ๐ Added `css` for `1.0`, ๐ Minor bug fixes and `prettify` Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com> * โป๏ธ Minor fix for `percent` validation check * โป๏ธ Removed superfluous trailing argument for `parseFloat` * ๐งช Experimental Code: Image Reference Issue This commit is intended to check and resolve image reference issue mentioned in discussion: #35783 (comment) Use keyboard "left" & "right" arrow key to move bar and slide images. Also, focus on the container to enable keyboard input to the component. * Fix ref issue in DisplayAsWithRef component (#5) * tickevents: remove unused enum values (#36159) * tickevents: remove unused enum values * Remove dupe of CLS, fidv, lj1,lj2 * format * ๐ฆ Update cimg/openjdk Docker tag to v17 (#36172) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency rollup to v2.57.0 (#36134) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency @octokit/graphql to v4.7.0 (#35844) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * โป๏ธ Migrate `observeWithSharedInOb` to `observeIntersections` (#36106) * ๐ Make setup-node step consistent across gh actions (#36175) * Partially revert "๐ Parallelize `dist` steps (#35943)" (#36176) * Revert "๐ Parallelize `dist` steps (#35943)" This reverts commit 1e2c808. * Partially allow parallelization for smaller tasks * Also include `compileAllJs` in the parallelized part * (amp-lightbox-gallery): opens to selected image, resolve #35920 (#36103) removed a unlayout call that would cause the image to default to the first slide * โป๏ธ preact inob: small cleanup (#36177) * preact inob: small cleanup * also remove current * build-system: only write version.txt once per dir (#36162) * build-system: only write version.txt once * output full set of * sort the paths * write files...not directories * succinct format * bind-impl: missing ampStateEl is a user error (#36113) * Update Yandex & ADFOX amp-ad codes (#35442) * ๐งชUpdate OT token for attribution-reporting (#36181) * ๐ Add `exports` for stylesheets to `package.json` (#36027) * Add styles.css export to package.json * Conditionally add export * Use `fast-glob` * Add separate export entry for each stylesheet * window support * sort for lint Co-authored-by: Jake Fried <samouri@users.noreply.github.com> * โจ [bento][amp-iframe] Add validator rules for 1.0 (#36182) * ๐ฎ Sweep experiments older than 2021-02-01 (#35486) Sweep experiments last flipped globally up to 2021-02-01: - (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1 * UTF8 encoding/decoding library to deprecated utf8 functions in strings.h|cc (#36184) library. PiperOrigin-RevId: 398102411 Co-authored-by: Amaltas Bohra <amaltas@google.com> * Validator rollup (#36185) * cl/398081751 Use the proto message number instead of index for enums. * cl/398323481 Two-way sync for PR #36085. No-op, or fixes merge conflicts, if any. Co-authored-by: honeybadgerdontcare <sedano@google.com> * ๐ฆ Update dependency @octokit/rest to v18.11.2 (#36180) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * deps: bump bento-compiler (#36191) * ๐ฆ Update dependency @jest/core to v27.2.3 (#36189) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency esbuild to v0.12.25 (#35928) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update linting devDependencies (#36119) * ๐ฆ Update linting devDependencies * Fix lint errors Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> Co-authored-by: Raghu Simha <rsimha@amp.dev> * ๐ฆ Update dependency axios to 0.21.2 [SECURITY] (#35999) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency esbuild to v0.13.3 (#36198) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency tar to v6.1.9 [SECURITY] (#35509) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * performance-impl: cant check ampdoc vis hidden while null (#36197) * performance-impl: cant check ampdoc vis hidden before initted * Add unit test * ๐ Add nice colors to release tagger logs (#36200) * log * comment * ๐ฆ Update core devDependencies (#36196) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency @ampproject/worker-dom to v0.32.0 (#36138) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency google-closure-library to v20210808 (#35617) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * SwG Release 0.1.22.186 (#36202) * ๐ฆ Update dependency chromedriver to v94 (#35951) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> Co-authored-by: Raghu Simha <rsimha@amp.dev> * ๐ฆ Update dependency tar to v6.1.11 (#36203) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ `bento-facebook` Documentation (#36038) * [`bento-facebook`] Update the amp-facebook.md file for both 0.1 and 1.0. Add a README.md for 1.0 bento mode. * [`bento-facebook`] Add documentation to describe the amp-facebook usage outside of valid AMP docs. * [`bento-facebook`] Add readme.md for BentoFacebook. * [`bento-facebook`] Address PR comments to update some attribute names. * [`bento-facebook`] Update CDN link to bento-facebook-1.0.js. * [`bento-facebook`] Prettify amp-facebook.md. * [`bento-facebook`] Update dead link to FB documentation to a real link. * [`bento-facebook`] Update dead links to be valid. * ๐ฎ Clean up dead amp-sidebar code within stories (#36178) * Remove amp-sidebar code from extensions/amp-story * Remove amp-sidebar visual tests from examples/visual-tests/amp-story * Remove reference to amp-sidebar from amp-story-interactive README * Remove remaining amp-sidebar logic from extensions/amp-story * Remove amp-sidebar logic from amp-story-system-layer code * Remove amp-sidebar code from amp-story-store-service.js * Remove amp-sidebar storybook JS files * A few missed deletions in test-amp-story and build-system/ caught by linter * Revert extensions/amp-sidebar/*/storybook removal from forbidden terms * Add back the amp-sidebar storybook files * Add newline at end of each storybook file * Run amp get-zindex --fix * ๐ [amp-story-panning-media] Set width on amp-img el (#36217) * Set width on amp-img el. * Add height * ๐ฆ Update dependency @octokit/rest to v18.11.3 (#36212) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency eslint-plugin-react to v7.26.1 (#36214) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency @ampproject/bento-compiler to v0.0.9 (#36225) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * โป๏ธDon't fetch crypto signature verifier in no-signing (#36187) * ๐ Force transfer of `amp-consent` element to the `FixedLayer` (#36223) Fixes #36063 `amp-consent` explicitly adds itself to the `FixedLayer`, transferring itself before the iframe is loaded. On a later pass, `FixedLayer` decides that `amp-consent` is not transferrable, so it returns it to the original `<body>` element. Enabling `forceTransfer` causes the return reparenting to not occur, thus preventing the iframe from loading a second time. * ๐ฆ Update core dependencies (#35061) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency rollup to v2.58.0 (#36232) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * ๐ฆ Update dependency @octokit/rest to v18.11.4 (#36227) Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> * [bento][amp-iframe] Add README (#36210) * [bento][amp-iframe] changes to publish to npm (#36190) * ๐ fix broken link to Preact/React component section in various README (#36222) * ๐ release: Update self-hosting support to use amp release (#36165) * Update self-host to use amp release `amp release` copies static files and downloaded resources to supplement an `amp dist` runtime. Support custom release flavor definitions and update the amp-framework-hosting documentation. * Fix typo in documentation * Prefer accessing argv instead of passing value * Skip cleaning custom configs by default * Review suggestions * [amp-iframe] iframe viewability (#36131) * bento amp-iframe: guard effect from running without a win (#36241) * ๐ babel/terser: rename all amp privates with sentinel suffix (#36143) * configs: Separate user configs from output files (#36236) Identify user configuration files under build-system/global-configs as distinct from generated output. This will help avoid accidentally including them in the cleanup script in the future. * Fix ref issue in DisplayAsWithRef component * Update the fix Co-authored-by: Jake Fried <samouri@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> Co-authored-by: dmanek <506183+dmanek@users.noreply.github.com> Co-authored-by: Esther Kim <44627152+estherkim@users.noreply.github.com> Co-authored-by: Daniel Rozenberg <rodaniel@amp.dev> Co-authored-by: William Johnson <dethstrobe@gmail.com> Co-authored-by: Mikhail Troshev <mishanga@yandex-team.ru> Co-authored-by: Caleb Cordry <ccordry@google.com> Co-authored-by: Pascal Birchler <pascalb@google.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Allan Banaag <banaag@google.com> Co-authored-by: Amaltas Bohra <amaltas@google.com> Co-authored-by: honeybadgerdontcare <sedano@google.com> Co-authored-by: Raghu Simha <rsimha@amp.dev> Co-authored-by: qidonna <968756+qidonna@users.noreply.github.com> Co-authored-by: rebeccanthomas <64608436+rebeccanthomas@users.noreply.github.com> Co-authored-by: Corey Masanto <masanto@google.com> Co-authored-by: Philip Bell <philipbell@google.com> Co-authored-by: Alan Orozco <alanorozco@users.noreply.github.com> Co-authored-by: Matt Mower <mdmower@cmphys.com> Co-authored-by: Anurag Vasanwala <75766877+AnuragVasanwala@users.noreply.github.com> * Fix bento slider issues (#12) * Refactor bento amp image slider markup * Fix label styling * Fix hints and slider touch gestures * Add storybook styling for custom label and hints * Remove unneccesary code * Add comments for `containerClass` and `initLogContructor` * Update import path using alias * โป๏ธ Update alias, update AMP example * ๐ Update compilation config * ๐ Fix for `amp-img` size * โป๏ธ Update image `selector` order * โป๏ธ Minor fix passing class name * Fix bento image slider misc issues (#14) * Add slot for custom hints and fix label markup * Implement display-hint-once option and cleanup code * Fix LGTM check * Fix LGTM check * Use ContainWrapper for component wrapper * Fix circleCI checks * Add unit test cases for amp-image-slider component * Update initial position attribute in storybook * Add unit test code coverage * Fix flaky test cases * Fix unit test cases * Remove image slider 1.0 example file * Remove unused code * Remove unused code * Fix unlisten event function logic * โป๏ธ Minor fix, `lint` and `prettify` * โป๏ธ Update derived class extends using `setSuperClass` * โป๏ธ Correct dead links in `markdown` * โป๏ธ Remove `@storybook/addon-knobs` dependency from storybook * โป๏ธ Allow `src/service/timer-impl.js` dependency * โป๏ธ Update `Z_INDEX.md` * โป๏ธ Add check for `initialPosition` and `stepSize` * ๐ Update `isFiniteNumber` with `isNaN` Co-authored-by: Caroline Liu <10456171+caroqliu@users.noreply.github.com> Co-authored-by: Edi Amin <to.ediamin@gmail.com> Co-authored-by: Jake Fried <samouri@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> Co-authored-by: dmanek <506183+dmanek@users.noreply.github.com> Co-authored-by: Esther Kim <44627152+estherkim@users.noreply.github.com> Co-authored-by: Daniel Rozenberg <rodaniel@amp.dev> Co-authored-by: William Johnson <dethstrobe@gmail.com> Co-authored-by: Mikhail Troshev <mishanga@yandex-team.ru> Co-authored-by: Caleb Cordry <ccordry@google.com> Co-authored-by: Pascal Birchler <pascalb@google.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Allan Banaag <banaag@google.com> Co-authored-by: Amaltas Bohra <amaltas@google.com> Co-authored-by: honeybadgerdontcare <sedano@google.com> Co-authored-by: Raghu Simha <rsimha@amp.dev> Co-authored-by: qidonna <968756+qidonna@users.noreply.github.com> Co-authored-by: rebeccanthomas <64608436+rebeccanthomas@users.noreply.github.com> Co-authored-by: Corey Masanto <masanto@google.com> Co-authored-by: Philip Bell <philipbell@google.com> Co-authored-by: Alan Orozco <alanorozco@users.noreply.github.com> Co-authored-by: Matt Mower <mdmower@cmphys.com> Co-authored-by: Deepak Lalwani <deepak.lalwani81@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
0.12.24->0.13.2See all other Renovate PRs on the Dependency Dashboard
How to resolve breaking changes
This PR may introduce breaking changes that require manual intervention. In such cases, you will need to check out this branch, fix the cause of the breakage, and commit the fix to ensure a green CI build. To check out and update this PR, follow the steps below:
Release Notes
evanw/esbuild
v0.13.2Compare Source
Fix
export {}statements with--tree-shaking=true(#โ1628)The new
--tree-shaking=trueoption allows you to force-enable tree shaking in cases where it wasn't previously possible. One such case is when bundling is disabled and there is no output format configured, in which case esbuild just preserves the format of whatever format the input code is in. Enabling tree shaking in this context caused a bug whereexport {}statements were stripped. This release fixes the bug soexport {}statements should now be preserved when you pass--tree-shaking=true. This bug only affected this new functionality and didn't affect existing scenarios.v0.13.1Compare Source
Fix the
esbuildpackage in yarn 2+The yarn package manager version 2 and above has a mode called PnP that installs packages inside zip files instead of using individual files on disk, and then hijacks node's
fsmodule to pretend that paths to files inside the zip file are actually individual files on disk so that code that wasn't written specifically for yarn still works. Unfortunately that hijacking is incomplete and it still causes certain things to break such as using these zip file paths to create a JavaScript worker thread or to create a child process.This was an issue for the new
optionalDependenciespackage installation strategy that was just released in version 0.13.0 since the binary executable is now inside of an installed package instead of being downloaded using an install script. When it's installed with yarn 2+ in PnP mode the binary executable is inside a zip file and can't be run. To work around this, esbuild detects yarn's PnP mode and copies the binary executable to a real file outside of the zip file.Unfortunately the code to do this didn't create the parent directory before writing to the file path. That caused esbuild's API to crash when it was run for the first time. This didn't come up during testing because the parent directory already existed when the tests were run. This release changes the location of the binary executable from a shared cache directory to inside the esbuild package itself, which should fix this crash. This problem only affected esbuild's JS API when it was run through yarn 2+ with PnP mode active.
v0.13.0Compare Source
This release contains backwards-incompatible changes. Since esbuild is before version 1.0.0, these changes have been released as a new minor version to reflect this (as recommended by npm). You should either be pinning the exact version of
esbuildin yourpackage.jsonfile or be using a version range syntax that only accepts patch upgrades such as~0.12.0. See the documentation about semver for more information.Allow tree shaking to be force-enabled and force-disabled (#โ1518, #โ1610, #โ1611, #โ1617)
This release introduces a breaking change that gives you more control over when tree shaking happens ("tree shaking" here refers to declaration-level dead code removal). Previously esbuild's tree shaking was automatically enabled or disabled for you depending on the situation and there was no manual override to change this. Specifically, tree shaking was only enabled either when bundling was enabled or when the output format was set to
iife(i.e. wrapped in an immediately-invoked function expression). This was done to avoid issues with people appending code to output files in thecjsandesmformats and expecting that code to be able to reference code in the output file that isn't otherwise referenced.You now have the ability to explicitly force-enable or force-disable tree shaking to bypass this default behavior. This is a breaking change because there is already a setting for tree shaking that does something else, and it has been moved to a separate setting instead. The previous setting allowed you to control whether or not to ignore manual side-effect annotations, which is related to tree shaking since only side-effect free code can be removed as dead code. Specifically you can annotate function calls with
/* @​__PURE__ */to indicate that they can be removed if they are not used, and you can annotate packages with"sideEffects": falseto indicate that imports of that package can be removed if they are not used. Being able to ignore these annotations is necessary because they are sometimes incorrect. This previous setting has been moved to a separate setting because it actually impacts dead-code removal within expressions, which also applies when minifying with tree-shaking disabled.Old behavior
New behavior
The npm package now uses
optionalDependenciesto install the platform-specific binary executable (#โ286, #โ291, #โ319, #โ347, #โ369, #โ547, #โ565, #โ789, #โ921, #โ1193, #โ1270, #โ1382, #โ1422, #โ1450, #โ1485, #โ1546, #โ1547, #โ1574, #โ1609)This release changes esbuild's installation strategy in an attempt to improve compatibility with edge cases such as custom registries, custom proxies, offline installations, read-only file systems, or when post-install scripts are disabled. It's being treated as a breaking change out of caution because it's a significant change to how esbuild works with JS package managers, and hasn't been widely tested yet.
The old installation strategy manually downloaded the correct binary executable in a post-install script. The binary executable is hosted in a separate platform-specific npm package such as
esbuild-darwin-64. The install script first attempted to download the package via thenpmcommand in case npm had custom network settings configured. If that didn't work, the install script attempted to download the package from https://registry.npmjs.org/ before giving up. This was problematic for many reasons including:npm --ignore-scriptsbecause then the post-install script wasn't run. Some people enable this option so that malicious packages must be run first before being able to do malicious stuff.The new installation strategy automatically downloads the correct binary executable using npm's
optionalDependenciesfeature to depend on all esbuild packages for all platforms but only have the one for the current platform be installed. This is a built-in part of the package manager so my assumption is that it should work correctly in all of these edge cases that currently don't work. And if there's an issue with this, then the problem is with the package manager instead of with esbuild so this should hopefully reduce the maintenance burden on esbuild itself. Changing to this installation strategy has these drawbacks:Old versions of certain package managers (specifically npm and yarn) print lots of useless log messages during the installation, at least one for each platform other than the current one. These messages are harmless and can be ignored. However, they are annoying. There is nothing I can do about this. If you have this problem, one solution is to upgrade your package manager to a newer version.
Installation will be significantly slower in old versions of npm, old versions of pnpm, and all versions of yarn. These package managers download all packages for all platforms even though they aren't needed and actually cannot be used. This problem has been fixed in npm and pnpm and the problem has been communicated to yarn: https://github.com/yarnpkg/berry/issues/3317. If you have this problem, one solution is to use a newer version of npm or pnpm as your package manager.
This installation strategy does not work if you use
npm --no-optionalsince then the package with the binary executable is not installed. If you have this problem, the solution is to not pass the--no-optionalflag when installing packages.There is still a small post-install script but it's now optional in that the
esbuildpackage should still function correctly if post-install scripts are disabled (such as withnpm --ignore-scripts). This post-install script optimizes the installed package by replacing theesbuildJavaScript command shim with the actual binary executable at install time. This avoids the overhead of launching anothernodeprocess when using theesbuildcommand. So keep in mind that installing with--ignore-scriptswill result in a sloweresbuildcommand.Despite the drawbacks of the new installation strategy, I believe this change is overall a good thing to move forward with. It should fix edge case scenarios where installing esbuild currently doesn't work at all, and this only comes at the expense of the install script working in a less-optimal way (but still working) if you are using an old version of npm. So I'm going to switch installation strategies and see how it goes.
The platform-specific binary executables are still hosted on npm in the same way, so anyone who wrote code that downloads builds from npm using the instructions here should not have to change their code: https://esbuild.github.io/getting-started/#download-a-build. However, note that these platform-specific packages no longer specify the
binfield inpackage.jsonso theesbuildcommand will no longer be automatically put on your path. Thebinfield had to be removed because of a collision with thebinfield of theesbuildpackage (now that theesbuildpackage depends on all of these platform-specific packages as optional dependencies).In addition to the breaking changes above, the following features are also included in this release:
Treat
xguarded bytypeof x !== 'undefined'as side-effect freeThis is a small tree-shaking (i.e. dead code removal) improvement. Global identifier references are considered to potentially have side effects since they will throw a reference error if the global identifier isn't defined, and code with side effects cannot be removed as dead code. However, there's a somewhat-common case where the identifier reference is guarded by a
typeofcheck to check that it's defined before accessing it. With this release, code that does this will now be considered to have no side effects which allows it to be tree-shaken:v0.12.29Compare Source
Fix compilation of abstract class fields in TypeScript (#โ1623)
This release fixes a bug where esbuild could incorrectly include a TypeScript abstract class field in the compiled JavaScript output. This is incorrect because the official TypeScript compiler never does this. Note that this only happened in scenarios where TypeScript's
useDefineForClassFieldssetting was set totrue(or equivalently where TypeScript'stargetsetting was set toESNext). Here is the difference:Proxy from the
__requireshim torequire(#โ1614)Some background: esbuild's bundler emulates a CommonJS environment. The bundling process replaces the literal syntax
require(<string>)with the referenced module at compile-time. However, other uses ofrequiresuch asrequire(someFunction())are not bundled since the value ofsomeFunction()depends on code evaluation, and esbuild does not evaluate code at compile-time. So it's possible for some references torequireto remain after bundling.This was causing problems for some CommonJS code that was run in the browser and that expected
typeof require === 'function'to be true (see #โ1202), since the browser does not provide a global calledrequire. Thus esbuild introduced a shimrequirefunction called__require(shown below) and replaced all references torequirein the bundled code with__require:However, this broke code that referenced
require.resolveinside the bundle, which could hypothetically actually work since you could assign your own implementation towindow.require.resolve(see #โ1579). So the implementation of__requirewas changed to this:However, that broke code that assigned to
window.requirelater on after the bundle was loaded (#โ1614). So with this release, the code for__requirenow handles all of these edge cases:typeof requireis stillfunctioneven ifwindow.requireis undefinedwindow.requirecan be assigned to either before or after the bundle is loadedrequire.resolveand arbitrary other properties can still be accessedrequirewill now forward any number of arguments, not just the first oneHandling all of these edge cases is only possible with the Proxy API. So the implementation of
__requirenow looks like this:Consider
typeof xto have no side effectsThe
typeofoperator does not itself trigger any code evaluation so it can safely be removed if evaluating the operand does not cause any side effects. However, there is a special case of thetypeofoperator when the operand is an identifier expression. In that case no reference error is thrown if the referenced symbol does not exist (e.g.typeof xdoes not throw an error if there is no symbol namedx). With this release, esbuild will now considertypeof xto have no side effects even if evaluatingxwould have side effects (i.e. would throw a reference error):Note that there is actually an edge case where
typeof xcan throw an error: whenxis being referenced inside of its TDZ, or temporal dead zone (i.e. before it's declared). This applies tolet,const, andclasssymbols. However, esbuild doesn't currently handle TDZ rules so the possibility of errors thrown due to TDZ rules is not currently considered. This typically doesn't matter in real-world code so this hasn't been a priority to fix (and is actually tricky to fix with esbuild's current bundling approach). So esbuild may incorrectly remove atypeofexpression that actually has side effects. However, esbuild already incorrectly did this in previous releases so its behavior regardingtypeofand TDZ rules hasn't changed in this release.v0.12.28Compare Source
Fix U+30FB and U+FF65 in identifier names in ES5 vs. ES6+ (#โ1599)
The ES6 specification caused two code points that were previously valid in identifier names in ES5 to no longer be valid in identifier names in ES6+. The two code points are:
U+30FBi.e.KATAKANA MIDDLE DOTi.e.ใปU+FF65i.e.HALFWIDTH KATAKANA MIDDLE DOTi.e.๏ฝฅThis means that using ES6+ parsing rules will fail to parse some valid ES5 code, and generating valid ES5 code may fail to be parsed using ES6+ parsing rules. For example, esbuild would previously fail to parse
x.y๏ฝฅeven though it's valid ES5 code (since it's not valid ES6+ code) and esbuild could generate{y๏ฝฅ:x}when minifying even though it's not valid ES6+ code (since it's valid ES5 code). This problem is the result of my incorrect assumption that ES6 is a superset of ES5.As of this release, esbuild will now parse a superset of ES5 and ES6+ and will now quote identifier names when possible if it's not considered to be a valid identifier name in either ES5 or ES6+. In other words, a union of ES5 and ES6 rules is used for parsing and the intersection of ES5 and ES6 rules is used for printing.
Fix
++and--on class private fields when used with big integers (#โ1600)Previously when esbuild lowered class private fields (e.g.
#foo) to older JavaScript syntax, the transform of the++and--was not correct if the value is a big integer such as123n. The transform in esbuild is similar to Babel's transform which has the same problem. Specifically, the code was transformed into code that either adds or subtracts the number1and123n + 1throws an exception in JavaScript. This problem has been fixed so this should now work fine starting with this release.v0.12.27Compare Source
Update JavaScript syntax feature compatibility tables (#โ1594)
Most JavaScript syntax feature compatibility data is able to be obtained automatically via https://kangax.github.io/compat-table/. However, they are missing data for quite a few new JavaScript features (see (kangax/compat-table#โ1034)) so data on these new features has to be added manually. This release manually adds a few new entries:
Top-level await
This feature lets you use
awaitat the top level of a module, outside of anasyncfunction. Doing this holds up the entire module instantiation operation until the awaited expression is resolved or rejected. This release marks this feature as supported in Edge 89, Firefox 89, and Safari 15 (it was already marked as supported in Chrome 89 and Node 14.8). The data source for this is https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await.Arbitrary module namespace identifier names
This lets you use arbitrary strings as module namespace identifier names as long as they are valid UTF-16 strings. An example is
export { x as "๐" }which can then be imported asimport { "๐" as y } from "./example.js". This release marks this feature as supported in Firefox 87 (it was already marked as supported in Chrome 90 and Node 16). The data source for this is https://bugzilla.mozilla.org/show_bug.cgi?id=1670044.I would also like to add data for Safari. They have recently added support for arbitrary module namespace identifier names (https://bugs.webkit.org/show_bug.cgi?id=217576) and
export * as(https://bugs.webkit.org/show_bug.cgi?id=214379). However, I have no idea how to determine which Safari release these bugs correspond to so this compatibility data for Safari has been omitted.Avoid unnecessary additional log messages after the server is stopped (#โ1589)
There is a development server built in to esbuild which is accessible via the
serve()API call. This returns a promise that resolves to an object with astop()method that immediately terminates the development server. Previously calling this could cause esbuild to print stray log messages sincestop()could cause plugins to be unregistered while a build is still in progress. With this release, callingstop()no longer terminates the development server immediately. It now waits for any active builds to finish first so the builds are not interrupted and left in a confusing state.Fix an accidental dependency on Go โฅ1.17.0 (#โ1585)
The source code of this release no longer uses the
math.MaxIntconstant that was introduced in Go version 1.17.0. This constant was preventing esbuild from being compiled on Go version <1.17.0. This fix was contributed by @โdavezuko.v0.12.26Compare Source
Add
--analyzeto print information about the bundle (#โ1568)The
--metafile=flag tells esbuild to write information about the bundle into the provided metadata file in JSON format. It contains information about the input files and which other files each one imports, as well as the output files and which input files they include. This information is sufficient to answer many questions such as:Previously you had to either write your own code to answer these questions, or use another tool such as https://bundle-buddy.com/esbuild to visualize the data. Starting with this release you can now also use
--analyzeto enable esbuild's built-in visualizer. It looks like this:This tells you what input files were bundled into each output file as well as the final minified size contribution of each input file as well as the percentage of the output file it takes up. You can also enable verbose analysis with
--analyze=verboseto see why each input file was included (i.e. which files imported it from the entry point file):There is also a JS API for this:
and a Go API:
Note that this is not the only way to visualize this data. If you want a visualization that's different than the information displayed here, you can easily build it yourself using the information in the metafile that is generated with the
--metafile=flag.Also note that this data is intended for humans, not machines. The specific format of this data may change over time which will likely break any tools that try to parse it. You should not write a tool to parse this data. You should be using the information in the JSON metadata file instead. Everything in this visualization is derived from the JSON metadata so you are not losing out on any information by not using esbuild's output.
Allow
require.resolvein non-node builds (#โ1579)With this release, you can now use
require.resolvein builds when the target platform is set tobrowserinstead ofnodeas long as the functionwindow.require.resolveexists somehow. This was already possible when the platform isnodebut when the platform isbrowser, esbuild generates a no-op shimrequirefunction for compatibility reasons (e.g. because some code expectstypeof requiremust be"function"even in the browser). The shim previously had a fallback towindow.requireif it exists, but additional properties of therequirefunction such asrequire.resolvewere not copied over to the shim. Now the shim function is only used ifwindow.requireis undefined so additional properties such asrequire.resolveshould now work.This change was contributed by @โscreetBloom.
v0.12.25Compare Source
Fix a TypeScript parsing edge case with the postfix
!operator (#โ1560)This release fixes a bug with esbuild's TypeScript parser where the postfix
!operator incorrectly terminated a member expression after thenewoperator:The problem was that
!was considered a postfix operator instead of part of a member expression. It is now considered to be part of a member expression instead, which fixes this edge case.Fix a parsing crash with nested private brand checks
This release fixes a bug in the parser where code of the form
#a in #b in ccaused a crash. This code now causes a syntax error instead. Private identifiers are allowed when followed byin, but only if the operator precedence level is such that theinoperator is allowed. The parser was missing the operator precedence check.Publish x86-64 binary executables for illumos (#โ1562)
This release adds support for the illumos operating system, which is related to Solaris and SunOS. Support for this platform was contributed by @โhadfl.
Configuration
๐ Schedule: "after 12am every weekday" in timezone America/Los_Angeles.
๐ฆ Automerge: Enabled.
โป Rebasing: Never, or you tick the rebase/retry checkbox.
๐ Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.