Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stenciljs/core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.18.1
Choose a base ref
...
head repository: stenciljs/core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.19.0
Choose a head ref
Loading
Showing with 3,420 additions and 2,817 deletions.
  1. +15 −0 .github/dependabot.yml
  2. +1 −1 .github/workflows/actions/download-archive/action.yml
  3. +3 −3 .github/workflows/actions/get-core-dependencies/action.yml
  4. +1 −1 .github/workflows/actions/upload-archive/action.yml
  5. +1 −1 .github/workflows/build.yml
  6. +1 −1 .github/workflows/lint-and-format.yml
  7. +13 −13 .github/workflows/tech-debt-burndown.yml
  8. +2 −2 .github/workflows/test-analysis.yml
  9. +5 −4 .github/workflows/test-browserstack.yml
  10. +1 −1 .github/workflows/test-bundlers.yml
  11. +2 −2 .github/workflows/test-e2e.yml
  12. +2 −2 .github/workflows/test-unit.yml
  13. +15 −0 CHANGELOG.md
  14. +94 −64 NOTICE.md
  15. +1,979 −2,288 package-lock.json
  16. +11 −12 package.json
  17. +1 −1 scripts/bundles/plugins/sizzle-plugin.ts
  18. +2 −0 src/cli/public.ts
  19. +15 −12 src/cli/telemetry/telemetry.ts
  20. +18 −0 src/cli/telemetry/test/telemetry.spec.ts
  21. +5 −0 src/compiler/build/build-ctx.ts
  22. +11 −1 src/compiler/build/build-hmr.ts
  23. +4 −0 src/compiler/bundle/bundle-interface.ts
  24. +1 −1 src/compiler/bundle/core-resolve-plugin.ts
  25. +79 −8 src/compiler/docs/generate-doc-data.ts
  26. +18 −0 src/compiler/docs/readme/markdown-overview.ts
  27. +2 −0 src/compiler/docs/readme/output-docs.ts
  28. +50 −0 src/compiler/docs/test/markdown-overview.spec.ts
  29. +11 −1 src/compiler/output-targets/output-docs.ts
  30. +1 −1 src/compiler/sys/logger/terminal-logger.ts
  31. +14 −2 src/compiler/sys/stencil-sys.ts
  32. +16 −16 src/compiler/transformers/add-static-style.ts
  33. +7 −5 src/compiler/transformers/component-lazy/lazy-constructor.ts
  34. +7 −1 src/compiler/transformers/component-lazy/lazy-element-getter.ts
  35. +12 −8 src/compiler/transformers/component-native/native-connected-callback.ts
  36. +9 −3 src/compiler/transformers/component-native/native-constructor.ts
  37. +1 −1 src/compiler/transformers/component-native/native-element-getter.ts
  38. +9 −9 src/compiler/transformers/component-native/native-static-style.ts
  39. +4 −4 src/compiler/transformers/create-event.ts
  40. +347 −33 src/compiler/transformers/decorators-to-static/convert-decorators.ts
  41. +7 −11 src/compiler/transformers/decorators-to-static/decorators-constants.ts
  42. +5 −2 src/compiler/transformers/decorators-to-static/method-decorator.ts
  43. +2 −2 src/compiler/transformers/decorators-to-static/prop-decorator.ts
  44. +1 −1 src/compiler/transformers/decorators-to-static/style-to-static.ts
  45. +12 −5 src/compiler/transformers/define-custom-element.ts
  46. +16 −6 src/compiler/transformers/host-data-transform.ts
  47. +7 −4 src/compiler/transformers/legacy-props.ts
  48. +0 −38 src/compiler/transformers/remove-static-meta-properties copy.ts
  49. +3 −3 src/compiler/transformers/style-imports.ts
  50. +221 −0 src/compiler/transformers/test/convert-decorators.spec.ts
  51. +1 −0 src/compiler/transformers/test/transpile.ts
  52. +10 −10 src/compiler/transformers/transform-utils.ts
  53. +31 −12 src/declarations/stencil-private.ts
  54. +10 −0 src/declarations/stencil-public-compiler.ts
  55. +20 −0 src/declarations/stencil-public-docs.ts
  56. +8 −1 src/declarations/stencil-public-runtime.ts
  57. +1 −0 src/dev-server/test/req-handler.spec.ts
  58. +25 −7 src/mock-doc/parse-util.ts
  59. +11 −2 src/sys/node/node-sys.ts
  60. +2 −0 src/sys/node/public.ts
  61. +1 −1 src/testing/jest/jest-config.ts
  62. +2 −1 src/testing/jest/jest-environment.ts
  63. +3 −1 src/testing/jest/jest-setup-test-framework.ts
  64. +12 −0 src/testing/jest/test/jest-config.spec.ts
  65. +5 −2 src/testing/puppeteer/puppeteer-browser.ts
  66. +2 −1 src/testing/puppeteer/puppeteer-page.ts
  67. +2 −1 src/testing/testing.ts
  68. +7 −1 src/utils/is-glob.ts
  69. +4 −0 test/end-to-end/src/car-list/readme.md
  70. +196 −194 test/karma/package-lock.json
  71. +3 −3 test/karma/package.json
  72. +0 −6 test/karma/test-app/delegates-focus/karma.spec.ts
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -16,3 +16,18 @@ updates:
versions: ['17', '18']
- dependency-name: 'typescript'
versions: ['4.8']
# disable Jest updates until the new testing architecture is in place
- dependency-name: '@types/jest'
versions: ['>=28']
- dependency-name: 'jest'
versions: ['>=28']
- dependency-name: 'jest-cli'
versions: ['>=28']
- dependency-name: 'jest-environment-node'
versions: ['>=28']
# Disable dependency updates used in release scripts
# TODO(STENCIL-590): remove these once deps are removed
- dependency-name: 'inquirer'
versions: ['>7.3.3']
- dependency-name: '@types/inquirer'
versions: ['>7.3.1']
2 changes: 1 addition & 1 deletion .github/workflows/actions/download-archive/action.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ inputs:
runs:
using: 'composite'
steps:
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0
- uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
with:
name: ${{ inputs.name }}
path: ${{ inputs.path }}
6 changes: 3 additions & 3 deletions .github/workflows/actions/get-core-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -6,10 +6,10 @@ runs:
# this overrides previous versions of the node runtime that was set.
# jobs that need a different version of the Node runtime should explicitly
# set their node version after running this step
- name: Use Node 16
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
- name: Use Node Version from Volta
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version: 16
node-version-file: './package.json'
cache: 'npm'

- name: Install Dependencies
2 changes: 1 addition & 1 deletion .github/workflows/actions/upload-archive/action.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ runs:
run: zip -q -r ${{ inputs.output }} ${{ inputs.paths }}
shell: bash

- uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
with:
name: ${{ inputs.name }}
path: ${{ inputs.output }}
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Code
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
# the pull_request_target event will consider the HEAD of `main` to be the SHA to use.
# attempt to use the SHA associated with a pull request and fallback to HEAD of `main`
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-format.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Code
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0

- name: Get Core Dependencies
uses: ./.github/workflows/actions/get-core-dependencies
26 changes: 13 additions & 13 deletions .github/workflows/tech-debt-burndown.yml
Original file line number Diff line number Diff line change
@@ -20,13 +20,13 @@ jobs:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout main
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
ref: main
if: ${{ matrix.branch == 'main' }}

- name: Checkout PR branch
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
# the pull_request_target event will consider the HEAD of `main` to be the SHA to use.
# attempt to use the SHA associated with a pull request and fallback to HEAD of `main`
@@ -44,7 +44,7 @@ jobs:
run: npx tsc --strictNullChecks --noEmit --pretty false | npx tsc-output-parser > null_errors_${{ matrix.branch }}.json

- name: Upload null_errors_${{ matrix.branch }}.json
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
with:
name: null_errors_${{ matrix.branch }}
path: 'null_errors_${{ matrix.branch }}.json'
@@ -58,13 +58,13 @@ jobs:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout main
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
ref: main
if: ${{ matrix.branch == 'main' }}

- name: Checkout PR branch
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
# the pull_request_target event will consider the HEAD of `main` to be the SHA to use.
# attempt to use the SHA associated with a pull request and fallback to HEAD of `main`
@@ -79,7 +79,7 @@ jobs:
run: npx ts-prune > unused-exports-${{ matrix.branch }}.txt

- name: Upload unused exports
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
with:
name: unused-exports-${{ matrix.branch }}
path: 'unused-exports-${{ matrix.branch }}.txt'
@@ -90,7 +90,7 @@ jobs:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout current branch
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
# the pull_request_target event will consider the HEAD of `main` to be the SHA to use.
# attempt to use the SHA associated with a pull request and fallback to HEAD of `main`
@@ -102,25 +102,25 @@ jobs:

# TODO(STENCIL-446): Remove this workflow once `strictNullChecks` is enabled
- name: Download null errors file for main branch
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
with:
name: null_errors_main

# TODO(STENCIL-446): Remove this workflow once `strictNullChecks` is enabled
- name: Download null errors file for PR
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
with:
name: null_errors_pr

# TODO(STENCIL-454): Remove or change this up once we've eliminated unused exports
- name: Download unused exports for main
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
with:
name: unused-exports-main

# TODO(STENCIL-454): Remove or change this up once we've eliminated unused exports
- name: Download unused exports for PR
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
with:
name: unused-exports-pr

@@ -141,15 +141,15 @@ jobs:
echo ::set-output name=body::$body
- name: Find Comment
uses: peter-evans/find-comment@1769778a0c5bd330272d749d12c036d65e70d39d # v2.0.0
uses: peter-evans/find-comment@b657a70ff16d17651703a84bee1cb9ad9d2be2ea # v2.0.1
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '### `--strictNullChecks` error report'

- name: Create or update comment
uses: peter-evans/create-or-update-comment@c9fcb64660bc90ec1cc535646af190c992007c32 # v2.0.0
uses: peter-evans/create-or-update-comment@2b2c85d0bf1b8a7b4e7e344bd5c71dc4b9196e9f # v2.0.1
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
4 changes: 2 additions & 2 deletions .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
@@ -16,13 +16,13 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0

- name: Get Core Dependencies
uses: ./.github/workflows/actions/get-core-dependencies

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version: ${{ matrix.node }}
cache: 'npm'
9 changes: 5 additions & 4 deletions .github/workflows/test-browserstack.yml
Original file line number Diff line number Diff line change
@@ -51,15 +51,16 @@ jobs:
# GitHub Actions 'concurrency' field as means to block the job until no other tests are running.
concurrency: run_browserstack_queue
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.number) || '' }}
persist-credentials: false

- name: Use Node 12
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
- name: Use Node Version from Volta (Karma)
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version: 12
# pull the version to use from the volta key in package.json
node-version-file: './test/karma/package.json'
cache: 'npm'

- name: Install dependencies
2 changes: 1 addition & 1 deletion .github/workflows/test-bundlers.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Code
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0

- name: Get Core Dependencies
uses: ./.github/workflows/actions/get-core-dependencies
4 changes: 2 additions & 2 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
@@ -16,13 +16,13 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0

- name: Get Core Dependencies
uses: ./.github/workflows/actions/get-core-dependencies

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version: ${{ matrix.node }}
cache: 'npm'
4 changes: 2 additions & 2 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
@@ -16,13 +16,13 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0

- name: Get Core Dependencies
uses: ./.github/workflows/actions/get-core-dependencies

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version: ${{ matrix.node }}
cache: 'npm'
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# 💾 [2.19.0](https://github.com/ionic-team/stencil/compare/v2.18.1...v2.19.0) (2022-10-24)


### Bug Fixes

* **cli:** "Browserslist: caniuse-lite is outdated" spams output when buildEs5 is truthy ([#3649](https://github.com/ionic-team/stencil/issues/3649)) ([d30cf58](https://github.com/ionic-team/stencil/commit/d30cf5800c22d77d93bd68d9139877f89d524263))
* **compiler:** update handling of decorators to support emitting ES2022+ ([#3614](https://github.com/ionic-team/stencil/issues/3614)) ([f977830](https://github.com/ionic-team/stencil/commit/f97783029274f9ee5ea58ba74ab15905c5113c93))
* **jest:** adjust conversion of CLI args to Jest args ([#3730](https://github.com/ionic-team/stencil/issues/3730)) ([5b76a0a](https://github.com/ionic-team/stencil/commit/5b76a0a90527b290420506036efbbb7c8e8451a4)), closes [#3724](https://github.com/ionic-team/stencil/issues/3724)


### Features

* **docs-readme:** add overview to readme ([#3635](https://github.com/ionic-team/stencil/issues/3635)) ([2db4f4d](https://github.com/ionic-team/stencil/commit/2db4f4de62c9547ccafb1d382130fcf82fd9ebf4))


## 😛 [2.18.1](https://github.com/ionic-team/stencil/compare/v2.18.0...v2.18.1) (2022-10-03)


Loading