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

moving to strict mode #1848

Merged
merged 61 commits into from Mar 23, 2024
Merged

moving to strict mode #1848

merged 61 commits into from Mar 23, 2024

Conversation

FabianGosebrink
Copy link
Collaborator

No description provided.

Copy link

github-actions bot commented Jan 4, 2024

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

github-actions bot commented Jan 4, 2024

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

github-actions bot commented Jan 4, 2024

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

github-actions bot commented Jan 4, 2024

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

github-actions bot commented Jan 4, 2024

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

github-actions bot commented Jan 4, 2024

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

1 similar comment
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

@timdeschryver
Copy link
Contributor

Ready to review, test and possibly merge @damienbod @timdeschryver :)

I got some time later this week, I'll try to review this PR.

@FabianGosebrink
Copy link
Collaborator Author

I don't think it is possible to review all files. @damienbod will test, I also did run a few test, worked fine so far.

@timdeschryver
Copy link
Contributor

Yea, I'll review some of the files within the library source, and also do a few tests.
I should also be able to build it locally and use it in our application to see if there are surprises there.

@FabianGosebrink
Copy link
Collaborator Author

That is even more than I can ask for. That will be perfect. Thank you!

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

1 similar comment
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

Copy link
Contributor

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

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

Looks great @FabianGosebrink ! 🏆
It also compiles and works on the project I'm working on.
I do got two questions/comments though:

  • I notice that any is used here and there, I can pick this up after this PR is merged
  • I also noticed that some operations where the config is used uses the following pattern tokenRefreshInSeconds ?? 0 (I assume this is for if the config option is null or undefined). Is this correct, because the docs/JSDocs mention a default value. For both cases can something be said, I take the assumption that for these cases we expect the user to configure the option with the null value?

…rvice.ts

Co-authored-by: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com>
@FabianGosebrink
Copy link
Collaborator Author

I notice that any is used here and there, I can pick this up after this PR is merged

That would be nice, yes. Happy to help.

I also noticed that some operations where the config is used uses the following pattern tokenRefreshInSeconds ?? 0 (I assume this is for if the config option is null or undefined). Is this correct, because the docs/JSDocs mention a default value. For both cases can something be said, I take the assumption that for these cases we expect the user to configure the option with the null value?

Ah, we should use the default value of 0. However, what if the user specifies/overwrites it with undefined or null? Well, we could let it crash then, because the value is not supported. Thoughts?

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

@timdeschryver
Copy link
Contributor

Ah, we should use the default value of 0. However, what if the user specifies/overwrites it with undefined or null? Well, we could let it crash then, because the value is not supported. Thoughts?

I believe this can be added in the future with a new major release.

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-hill-002425310-1848.centralus.azurestaticapps.net

@FabianGosebrink
Copy link
Collaborator Author

FabianGosebrink commented Mar 21, 2024

I think we can merge then, can't we?

@FabianGosebrink FabianGosebrink merged commit 3465e3d into main Mar 23, 2024
9 of 10 checks passed
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

3 participants