-
Notifications
You must be signed in to change notification settings - Fork 6
chore(deps): upgrade major dependencies and ESLint 9 #78
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
Open
itavy
wants to merge
4
commits into
adobe:master
Choose a base branch
from
itavy:chore/upgrade-dependencies
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c5df1dc
chore(deps): upgrade major dependencies
itavy 23faedc
chore(deps): upgrade to ESLint 9 with flat config
itavy e959877
chore(deps): require @adobe/aio-lib-ims >= 8.1.2
itavy 84d1aa4
Merge branch 'master' into chore/upgrade-dependencies
shazron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| /* | ||
| Copyright 2020 Adobe. All rights reserved. | ||
| This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. You may obtain a copy | ||
| of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software distributed under | ||
| the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
| OF ANY KIND, either express or implied. See the License for the specific language | ||
| governing permissions and limitations under the License. | ||
| */ | ||
|
|
||
| const aioLibConfig = require('@adobe/eslint-config-aio-lib-config') | ||
|
|
||
| module.exports = [ | ||
| ...aioLibConfig, | ||
| { | ||
| files: ['test/**/*.js'], | ||
| languageOptions: { | ||
| globals: { | ||
| jest: 'readonly', | ||
| describe: 'readonly', | ||
| test: 'readonly', | ||
| expect: 'readonly', | ||
| beforeEach: 'readonly', | ||
| afterEach: 'readonly', | ||
| beforeAll: 'readonly', | ||
| afterAll: 'readonly' | ||
| } | ||
| } | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@itavy One thing I want to double check here is the peer dependency move from @adobe/aio-lib-ims@^7 to ^8.1.2. I understand we needed 8.1.2 for the audit cleanup , but it means consumers using aio-lib-ims-jwt with aio-lib-ims@7 will now get peer dependency issues, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dthampy Great catch! You're absolutely right - this is a breaking change. Let me break down the implications:
Analysis
The concern is valid - changing from
^7to^8.1.2has compatibility implications.Impact:
Options Considered:
Option A: Keep
^8instead of^8.1.2Option B: Keep
^8.1.2and release as v6.0.0 β RECOMMENDEDOption C: Revert to
^7Key Insight:
We already introduced a breaking change in commit 1 by moving from
^7to^8. The question is just how restrictive to be within v8.Since:
I recommend Option B - keep
^8.1.2and release this as v6.0.0.Question:
Is aio-lib-ims@7 still actively maintained, or is everything moving to v8 now? This would help determine if we need to maintain backwards compatibility or if a clean break is acceptable.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: Long-term Option D
After analyzing the codebase, I found that the circular dependency can be broken by extracting shared code!
Option D: Extract
@adobe/aio-lib-ims-coreβ BEST LONG-TERMWhy the circular dependency exists:
aio-lib-imsimportsaio-lib-ims-jwtas a pluginaio-lib-ims-jwtonly needs 2 methods:ims.getApiUrl()andims.exchangeJwtToken()Solution: Create new core package with just those methods:
Benefits:
Effort: ~1-2 weeks for extraction, refactoring, and testing
Implementation: Can be done as pre-releases (beta) to validate before stable
I've created a detailed proposal: Issue #79
Recommendation
Short-term (this PR): Go with Option B - keep
^8.1.2, release as v6.0.0Long-term: Consider Option D (core extraction) as outlined in #79
The short-term fix gets us moving now, while the long-term fix provides the cleanest architecture.
Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important discovery: JWT authentication is officially deprecated as of June 30, 2025.
From Adobe Developer docs:
Impact on Our Discussion
This changes the context for both short-term and long-term decisions:
For this PR (Option B):
For Option D (core extraction):
@adobe/aio-lib-ims-oauthuse the same patterns? Would core extraction benefit OAuth implementation?Key Questions for @dthampy:
aio-lib-ims-oauththe recommended path forward?Migration Guide: https://developer.adobe.com/developer-console/docs/guides/authentication/ServerToServerAuthentication/migration
This context should inform our decision on whether to invest in architectural refactoring vs. minimal maintenance mode.