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

OHRM5X-1888: Upgrade oxd dependencies #658

Merged
merged 11 commits into from Jan 5, 2023

Conversation

Super-Chama
Copy link
Member

@Super-Chama Super-Chama commented Dec 16, 2022

Checklist

  • Test Coverage is 100% for the newly added code
  • Storybook stories are added/updated for the changed areas
  • Code is linted properly
  • Developer testing is done for the affected areas
  • Package version updated

@@ -7,8 +7,7 @@ module.exports = {
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint',
'plugin:prettier/recommended',
Copy link
Member Author

Choose a reason for hiding this comment

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

@vue/eslint-config-prettier package remove due to deprecation. eslint-plugin-vue is added.

https://cli.vuejs.org/migrations/migrate-from-v4.html#eslint-plugin

opera >= 12
safari >= 5
chrome >= 56
> 1%
Copy link
Member Author

Choose a reason for hiding this comment

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

Recommended latest browserlist config vuejs/vue-cli#5233

Copy link
Member

Choose a reason for hiding this comment

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

We have to define the minimum supported browser versions.

Copy link
Member Author

Choose a reason for hiding this comment

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

1% is all versions with >1% of the audience worldwide.
We can further specify versions, but needs to be updated manually. Let's discuss

From browserlist tool
image

@@ -1,7 +1,4 @@
module.exports = {
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
transform: {
'^.+\\.vue$': 'vue-jest',
},
Copy link
Member Author

Choose a reason for hiding this comment

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

vue-jest deprecated. vue3-jest is installed
https://github.com/vuejs/vue-jest#installation

@@ -15,10 +15,11 @@
"tsc": "yarn workspace oxd-components tsc"
},
"engines": {
"node": ">=10.19.0",
"yarn": ">=1.22.4"
"node": ">=16.17.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

Minimum: Node 16 (Active updates)
Recommended: Node 18 (Current LTS)
https://endoflife.date/nodejs

Yarn 3.3 Latest (version barry)

@@ -1,6 +1,9 @@
const path = require('path');

module.exports = {
core: {
builder: 'webpack5',
Copy link
Member Author

Choose a reason for hiding this comment

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

"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.0.3",
"jest": "^27.1.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

Cannot update to vue-jest 29 based on jest 29 due to @vue/cli-plugin-unit-jest plugin for vue-cli is not supported yet. (most likely will not be supported ever as upstream development is now focused on vite)

@@ -40,6 +40,10 @@ const options = [
];

describe('SelectInput.vue', () => {
const div = document.createElement('div');
Copy link
Member Author

Choose a reason for hiding this comment

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

Due to a bug in jsdom v16 and above, focus is not emitted unless 'attachedTo' value is added to wrapper. Newer version of vue test utils documentation is missing this. (below exempt is taken from vue2 docs)

refer discussion in vuejs/vue-test-utils#1777

image

opera >= 12
safari >= 5
chrome >= 56
> 1%
Copy link
Member

Choose a reason for hiding this comment

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

We have to define the minimum supported browser versions.

@RajithaKumara RajithaKumara merged commit c25fd60 into orangehrm:develop Jan 5, 2023
@Super-Chama Super-Chama deleted the develop branch January 5, 2023 04:36
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

2 participants