Commit Graph

42 Commits

Author SHA1 Message Date
Sean Perkins
4f1b4cdc29 chore(core): type checking for unit tests (#28529)
Issue number: N/A

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

Type checking inside of the Stencil unit tests have been disabled for a
long time. This has resulted in a difficult developer experience and
numerous issues (both types and implementation) within our unit tests.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Type checking is now enabled for all Stencil unit tests
- Tests have been updated to resolve type errors and implementation
errors
- Many `as any` casts were introduced, as many legacy tests test invalid
configurations of functions that require it (for example passing
`undefined` to an argument that cannot be `undefined`).

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

To test this PR you can checkout the branch locally. Install
dependencies in the `/core` directory to make sure you are on at least
`@stencil/core@4.7.2`.

Opening either a `.spec.ts` or `.spec.tsx` file, validate that your IDE
detects types and can provide auto completions for jest global types.

If you desire, you can provide an invalid type and try building the
project - you will observe the build will fail due to the invalid type.
2023-11-17 16:47:34 +00:00
Ryan Waskiewicz
d3232dcc00 chore(global): remove unused context references (#27634)
Issue number: N/A

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

Ionic Framework references a deprecated object,`Context`, exposed by
Stencil

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

starting with stencil v4, the deprecated `Context` object will no longer
be exposed by stencil. this change was introduced in
https://github.com/ionic-team/stencil/pull/4437, and will be present in
the first v4 prerelease following v4.0.0-beta.2. in anticipation for
this change, we seek to remove references to `Context` early.

## Does this introduce a breaking change?

- [ ] Yes
- [x] No - To the best of my knowledge

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

ATM, the Stencil v4 nightly build is passing, as it's grabbing
`@stencil/core@4.0.0-beta.2`. The change in which we remove the
`Context` object will occur in the _next_ pre-release. I'm removing
`Context` here to try to get a jump on things.


The current iteration of the code that I'm deleting was added in
c415bbe1d7 (diff-ce62e75f0c31a76aac491f13a64e9c7771a6cbae8ca6635541164b69f0479bf1)
<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
2023-06-14 19:33:51 +00:00
Amanda Johnston
c2e1ad385d chore(many): replace any types and add tech debt tickets (#26293)
Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
2023-01-06 09:34:55 -06:00
Liam DeBeasi
5676bab316 lint(eslint): migrate to eslint and prettier (#25046) 2022-04-04 11:12:53 -04:00
William Martin
45cabae04b feat(platform): add ability to override platform detection methods (#23915)
resolves #19737
2021-09-14 15:49:04 -04:00
Liam DeBeasi
dc48a9f1a2 feat(vue): add custom elements bundle (#23458) 2021-06-17 14:10:50 -04:00
Adam Bradley
0de75afbef feat(custom-elements): add experimental custom elements build (#22863)
Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
2021-02-11 12:08:00 -05:00
Adam Bradley
323e15003f chore: internal import updates to improve bundling (#21400)
* chore: internal import updates to improve bundling

- Rename keyboard.ts so it has a good filename after custom element bundling
- Import util fns directly instead of from top level index
- Do not export with *

* chore(angular): bump ng-packagr

Co-authored-by: Mike Hartington <mikehartington@gmail.com>
2020-05-29 10:04:12 -05:00
Jakob Engelbrecht
364a0a63da fix(): only cascade mode from parent Ionic components (#20828)
fixes #20055
2020-03-25 14:33:13 -04:00
Brandy Carney
3dd5f05760 feat(components): cascade mode from parent to child components (#19369)
fixes #18285
2019-10-10 14:34:16 -04:00
Manu MA
03c1d19e07 perf(all): minify better by using arrow functions (#18730) 2019-07-10 10:33:33 -04:00
Manu MA
34dfc3ce98 refactor(all): updating to newest stencil apis (#18578)
* chore(): update ionicons

* refactor(all): updating to newest stencil apis

* fix lint issues

* more changes

* moreee

* fix treeshaking

* fix config

* fix checkbox

* fix stuff

* chore(): update ionicons

* fix linting errors
2019-06-23 11:26:42 +02:00
Manu MA
b40f7d36d5 fix(): update to Stencil One 🎉🎊 2019-06-19 21:33:50 +02:00
Adam Bradley
f44c17e03b fix(ssr): fix angular global window and document references 2019-02-25 16:43:41 -06:00
Adam Bradley
4646f53ec7 fix(ssr): fix global window and document references (#17590) 2019-02-22 20:13:09 -06:00
Manu MA
4d3ad67740 refactor(tabs): apply design-doc (#16048) 2018-10-25 22:13:19 +02:00
Manu Mtz.-Almeida
9d109d68c8 fix(all): disable animations in e2e tests 2018-10-08 10:18:31 -05:00
Manu Mtz.-Almeida
5560dcd713 fix(all): avoid using focus() since it conflicts with HTMLElement
fixes #15810
2018-10-02 17:13:45 +02:00
Manu Mtz.-Almeida
ff919de972 fix(): remove argument-less catch() 2018-09-14 03:03:21 +02:00
Manu Mtz.-Almeida
bb1924315e fix(esm): reorganiza exports 2018-09-11 10:54:30 +02:00
Manu Mtz.-Almeida
8b768fb73d fix(overlay): expose "animated" API
fixes #14775
2018-08-26 19:06:50 +02:00
Manu Mtz.-Almeida
3ffa3cd7db fix(platform): better detect platforms + css API
fixes #15165
fixes #15116
2018-08-25 16:53:31 +02:00
David Dal Busco
2af72fadfd fix(config): scrollAssist boolean definition (#15203) 2018-08-17 02:33:51 +02:00
Manu Mtz.-Almeida
1e1964dd77 fix(config): persistConfig 2018-08-12 01:19:00 +02:00
Manu Mtz.-Almeida
db0049ff73 fix(config): add persistance mode
fixes #15102
2018-08-12 01:18:59 +02:00
Manu Mtz.-Almeida
50ad1e7c5a fix(router): transition race condition
fixes #14873
fixes #15090
2018-08-09 02:40:36 +02:00
Manu Mtz.-Almeida
01690452e9 feat(config): strongly typed config
fixes #15097
2018-08-08 23:53:15 +02:00
Manu Mtz.-Almeida
c1b61d0fee chore(): update to ionic-rules/strict 2018-07-29 23:10:38 +02:00
Brandy Carney
a7f1f4daa7 refactor(components): update to use shadow DOM and work with css variables
- updates components to use shadow DOM or scoped if they require css variables
- moves global styles to an external stylesheet that needs to be imported
- adds support for additional colors and removes the Sass loops to generate colors for each component
- several property renames, bug fixes, and test updates

Co-authored-by: Manu Mtz.-Almeida <manu.mtza@gmail.com>
Co-authored-by: Adam Bradley <adambradley25@gmail.com>
Co-authored-by: Cam Wiegert <cam@camwiegert.com>
2018-07-09 12:57:21 -04:00
Adam Bradley
f3dc8a0fed chore(exports): update core exports 2018-05-16 11:39:41 -05:00
Manu Mtz.-Almeida
4965dcc49e chore(): update to latest stencil 2018-04-26 20:35:04 +02:00
Manu Mtz.-Almeida
8b1452c5c1 fix(lint): import order 2018-04-26 20:18:57 +02:00
mhartington
c917a3cd48 fix(config): add object.entries polyfil 2018-04-26 10:08:07 -04:00
Manu Mtz.-Almeida
053c375521 refactor(all): allow external imports 2018-04-24 16:12:02 +02:00
Manu Mtz.-Almeida
0c1476e0ff fix(config): add setupConfig util 2018-04-24 01:25:03 +02:00
Manu Mtz.-Almeida
4ea8881f33 refactor(all): enable strictPropertyInitialization 2018-04-19 18:48:38 +02:00
Manu Mtz.-Almeida
78bd146ad2 fix(prerender): local references to window/document 2018-04-19 13:26:49 +02:00
Manu Mtz.-Almeida
86a6cde4a1 perf(platform): remove from critical path 2018-04-18 23:06:56 +02:00
Adam Bradley
bceece7bc1 feat(DomController): add DomController provider using stencil queue 2018-04-12 11:12:12 -05:00
Adam Bradley
d623b3b71f feat(queue): use stencil's queue controller for dom read/writes 2018-04-11 15:24:49 -05:00
Manu Mtz.-Almeida
69a6f8d012 feat(config): add set to config 2018-03-22 19:11:10 +01:00
Brandy Carney
d37623a2ca chore(packages): move the packages to root 2018-03-12 16:02:25 -04:00