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

Provide an Ivy Distribution #281

Closed
wants to merge 1 commit into from
Closed

Provide an Ivy Distribution #281

wants to merge 1 commit into from

Conversation

frederikprijck
Copy link
Member

Description

Compiles the Library without disabling Ivy. Installing our SDK in Angular13 generates a warning because of the fact that we do not compile using Ivy. This was done previously to support Angular 8 up until 10. However, Angular itself does not support any version prior to 11, so this PR also bumps our minimal peer dependency version to 11, ensuring we can compile using Ivy.

Theoretically this is a breaking change, as it breaks support for Angular 9 and 10. However as those versions of Angular aren't supported by Angular itself, it's worth considering releasing this as a minor.

References

Closes #255

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not master

@frederikprijck frederikprijck requested a review from a team as a code owner February 8, 2022 10:53
@@ -9,7 +9,7 @@
"start:local:playground": "ng serve --configuration=local",
"prebuild": "npm run update-useragent",
"build": "ng build && npm run build:schematics",
"build:prod": "ng build --prod && npm run build:schematics",
"build:prod": "ng build --configuration production && npm run build:schematics",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed this command as it was giving a warning. Not related to Ivy.

@@ -4,5 +4,5 @@
"lib": {
"entryFile": "src/public-api.ts"
},
"whitelistedNonPeerDependencies": ["tslib", "@auth0/auth0-spa-js"]
"allowedNonPeerDependencies": ["tslib", "@auth0/auth0-spa-js"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed this property as it was giving a warning. Not related to Ivy.

"@angular/router": ">=9 <=13"
"@angular/common": ">=11 <=13",
"@angular/core": ">=11 <=13",
"@angular/router": ">=11 <=13"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropping support for Angular 9 and 10, as they aren't supported anymore.

@@ -2,6 +2,6 @@
{
"extends": "./tsconfig.lib.json",
"angularCompilerOptions": {
"enableIvy": false
"compilationMode": "partial"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Ivy for compilation

@frederikprijck frederikprijck added the review:tiny Tiny review label Feb 8, 2022
@frederikprijck frederikprijck marked this pull request as draft February 8, 2022 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:tiny Tiny review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide an Ivy distribution
1 participant