Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Fix/ts3.1.1 compatibility #264

Merged
merged 32 commits into from
Oct 6, 2020
Merged

Conversation

Tiagoperes
Copy link
Contributor

@Tiagoperes Tiagoperes commented Oct 5, 2020

- What I did
Addresses #262. This is not a final fix, since we can easily introduce new incompatible code without ever realizing it. We still must find a way to guarantee the generated code to be compatible with older versions of Typescript (>= 3.1.1).

The generated code is now compatible and will work with Angular 7 and above (TS 3.1.1 and above). The problems were the following:

  • Usage of the TS Omit instead of using the one we defined ourselves. Old TS versions don't have Omit.
  • Usage of Iterator when our targeted version is ES5, which doesn't support Iterators.

- How I did it

  • Fixed a problem that prevented us from referencing the file types.ts
  • Replaced TS Omit by the Omit in types.ts
  • Copied the type Iterator from the ES6 definition to the file types.ts
  • Replace the TS Iterator by the Iterator in types.ts

- How to verify it
Run it an angular 7 environment

- Description for the changelog

  • Fix problem with older versions of Typescript (Angular 7).

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2020

Code coverage

Filename Statements Branches Functions Lines
src/logger/index.ts 79.17% 70% 90% 81.82%
src/beagle-view/navigator/index.ts 97.14% 93.22% 100% 100%
src/error/BeagleNavigationError.ts 100% 100% 100% 100%
src/error/BeagleError.ts 100% 100% 100% 100%
src/beagle-view/render/expression.ts 98.99% 97.33% 100% 100%
src/operation/index.ts 100% 100% 100% 100%
src/operation/array.ts 100% 100% 100% 100%
src/operation/logic.ts 100% 100% 100% 100%
src/operation/number.ts 100% 100% 100% 100%
src/operation/other.ts 100% 100% 100% 100%
src/operation/string.ts 100% 100% 100% 100%
src/utils/automaton.ts 100% 100% 100% 100%
src/error/BeagleNotFoundError.ts 100% 100% 100% 100%
src/error/BeagleParseError.ts 100% 100% 100% 100%
src/beagle-view/render/context.ts 100% 100% 100% 100%
src/action/set-context.ts 100% 83.33% 100% 100%
src/beagle-tree/index.ts 100% 100% 100% 100%
src/beagle-tree/iteration.ts 97.14% 91.67% 87.5% 100%
src/beagle-tree/manipulation.ts 90.91% 71.43% 100% 100%
src/beagle-tree/reading.ts 97.62% 95.83% 100% 100%
src/action/index.ts 100% 100% 100% 100%
src/action/add-children.ts 100% 90.91% 100% 100%
src/action/send-request.ts 100% 92.31% 100% 100%
src/action/alert.ts 100% 100% 100% 100%
src/action/confirm.ts 100% 100% 100% 100%
src/action/submit-form.ts 25% 0% 0% 25%
src/action/condition.ts 100% 100% 100% 100%
src/action/navigation/index.ts 100% 66.67% 100% 100%
src/utils/url.ts 100% 100% 100% 100%
src/utils/string.ts 100% 100% 100% 100%
src/utils/object.ts 100% 66.67% 100% 100%
src/beagle-view/render/action.ts 97.06% 96.43% 90% 96.55%
src/service/beagle-service/index.ts 100% 100% 100% 100%
src/beagle-view/index.ts 89.25% 69.23% 85.71% 90.48%
src/beagle-view/render/index.ts 96.97% 92.86% 100% 100%
src/beagle-view/render/component.ts 100% 100% 100% 100%
src/beagle-view/render/navigation.ts 97.06% 96% 100% 100%
src/beagle-view/render/styling.ts 94.4% 89.47% 100% 99.09%
src/beagle-view/render/type-checker.ts 100% 100% 100% 100%
src/service/beagle-service/configuration.ts 100% 100% 100% 100%
src/metadata/parser.ts 94.44% 75% 100% 100%
src/legacy/middlewares.ts 100% 100% 100% 100%
src/service/beagle-service/services.ts 100% 100% 100% 100%
src/service/network/remote-cache/index.ts 100% 100% 100% 100%
src/service/network/default-headers/index.ts 100% 100% 100% 100%
src/service/network/url-builder/index.ts 100% 100% 100% 100%
src/service/network/view-client/index.ts 97.92% 94.37% 100% 97.73%
src/error/BeagleCacheError.ts 100% 100% 100% 100%
src/error/BeagleNetworkError.ts 100% 100% 100% 100%
src/error/BeagleExpiredCacheError.ts 100% 100% 100% 100%
src/service/global-context/index.ts 100% 91.67% 100% 100%
src/service/view-content-manager/index.ts 100% 100% 100% 100%
src/legacy/beagle-context.ts 100% 100% 100% 100%
src/metadata/decorator.ts 100% 100% 100% 100%
src/index.ts 100% 100% 100% 100%

@carolinegoncalveszup carolinegoncalveszup merged commit b8d67ef into master Oct 6, 2020
@carolinegoncalveszup carolinegoncalveszup deleted the fix/ts3.1.1-compatibility branch October 6, 2020 22:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants