Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(typings): update browser-compile typings #3259

Merged
merged 2 commits into from
Mar 2, 2022

Conversation

rwaskiewicz
Copy link
Member

@rwaskiewicz rwaskiewicz commented Mar 2, 2022

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Unit tests (npm test) were run locally and passed
  • E2E Tests (npm run test.karma.prod) were run locally and passed
  • Prettier (npm run prettier) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Preflight checklists for releasing Stencil can't be followed, as there are typescript errors outside the core compiler - specifically as a part of a manual testing suite.

GitHub Issue Number: N/A

What is the new behavior?

this commit is a quick fix for the browser-compile tests that currently
do not compile after setting useUnknownInCatchVariables in
#3211. This went unnoticed as
this application is not currently type checked by our CI process. In
order to get the application to compile, we type the error as any for
now, with the intent of properly narrowing it in STENCIL-371 (and adding
proper CI checks there as well). this commit only unblocks next monday's
release.

Does this introduce a breaking change?

  • Yes
  • No

Testing

Checkout this branch, and build Stencil: npm ci && npm run build:
Start the browser-compile project - cd test/browser-compile && npm run start

Other information

I intend to really fix this in a future ticket, this is just to unblock next Monday's release

this commit is a quick fix for the browser-compile tests that currently
do not compile after setting `useUnknownInCatchVariables` in
#3211. This went unnoticed as
this application is not currently type checked by our CI process. In
order to get the application to compile, we type the error as `any` for
now, with the intent of properly narrowing it in STENCIL-371 (and adding
proper CI checks there as well). this commit only unblocks next monday's
release.
@rwaskiewicz rwaskiewicz marked this pull request as ready for review March 2, 2022 17:24
@rwaskiewicz rwaskiewicz requested a review from a team March 2, 2022 17:24
@rwaskiewicz rwaskiewicz merged commit 6104dbc into main Mar 2, 2022
@rwaskiewicz rwaskiewicz deleted the rwaskiewicz/quick-fix-browser-compile branch March 2, 2022 19:31
@rwaskiewicz rwaskiewicz mentioned this pull request Mar 3, 2022
14 tasks
rwaskiewicz added a commit that referenced this pull request Mar 11, 2022
this commit introduces proper type guards for the browser-compile
project, removing the stopgap 'any' usage that was introduced in
#3259
rwaskiewicz added a commit that referenced this pull request Mar 15, 2022
this commit introduces proper type guards for the browser-compile
project, removing the stopgap 'any' usage that was introduced in
#3259
rwaskiewicz added a commit that referenced this pull request Mar 24, 2022
this commit introduces proper type guards for the browser-compile
project, removing the stopgap 'any' usage that was introduced in
#3259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants