-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix/TR-6195/remove tao-core-libs dependency #187
Fix/TR-6195/remove tao-core-libs dependency #187
Conversation
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.
Libs file: https://github.com/oat-sa/tao-core-libs-fe/blob/master/src/pathdefinition.js
This is only loaded for unit tests.
import 'webcrypto-shim'; | ||
import { TextEncoder } from 'fastestsmallesttextencoderdecoder'; |
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.
These are out because
- window.crypto.subtle became supported in all browsers and Node
- TextEncoder the same
src/core/uuid.js
Outdated
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.
This file is a copy of https://github.com/oat-sa/tao-core-libs-fe/blob/master/src/uuid.js
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.
Very nice improvement! I'll approve when tao-deliver-fe
issue (if actual) is resolved
Version
There are 0 BREAKING CHANGE, 1 feature, 1 fix |
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.
Very nice improvement
- New code is covered by tests (if applicable)
- Tests are running successfully (old and new ones) on my local machine (if applicable)
- New code is respecting code style rules
- New code is respecting best practices
- Feature is working correctly on my local machine (if applicable)
- Acceptance criteria are respected
- Pull request title and description are meaningful
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.
Nice job! LGTM
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.
Review Checklist
-
New code is covered by tests (if applicable) - Tests are running successfully (old and new ones) on my local machine (if applicable)
- New code respects code style rules
- New code respects best practices
-
New code is not subject to concurrency issues (if applicable) - Feature is working correctly on my local machine (if applicable)
- Acceptance criteria are respected
- Pull request title and description are meaningful
- Pull request's target is not
master
- Commits are following conventional commits
- Commits messages are meaningful
- Commits are atomic
https://oat-sa.atlassian.net/browse/TR-6195
The link between
tao-core-sdk
andtao-core-libs
has a small surface area: only 2 libs files are really used in sdk.This PR aims to break that link, meaning that
tao-core-sdk
can then be installed in projects (e.g. Nextgen) without installingtao-core-libs
and all the old CurrentGen dependencies it brings in.Dependencies removed because no usage found in
tao-core-sdk
:dompurify
gamp
interactjs
mime
moment-timezone
popper.js
promise-limit
raphael
select2
tooltip.js
Dependencies removed due to better browser support:
fastestsmallesttextencoderdecoder
webcrypto-shim
How to test
In CurrentGen TAO
Deployed to: https://test-tr-6195-authoring.v3.playground.taocloud.org/
uuid
is quite commonly called, in case you want to check it.DEBUG_MODE
true and false inconfig/generis.config.php
In LDS
In a NextGen project (e.g. tao-deliver-fe)