Skip to content

OHRM5X-1888: Upgrade oxd dependencies - #658

Merged
RajithaKumara merged 11 commits into
orangehrm:developfrom
Super-Chama:develop
Jan 5, 2023
Merged

OHRM5X-1888: Upgrade oxd dependencies#658
RajithaKumara merged 11 commits into
orangehrm:developfrom
Super-Chama:develop

Conversation

@Super-Chama

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

Copy link
Copy Markdown
Member

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

Comment thread components/.eslintrc.js
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint',
'plugin:prettier/recommended',

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@Super-Chama Super-Chama Jan 5, 2023

Copy link
Copy Markdown
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

Comment thread components/jest.config.js
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
transform: {
'^.+\\.vue$': 'vue-jest',
},

Copy link
Copy Markdown
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

Comment thread package.json
"engines": {
"node": ">=10.19.0",
"yarn": ">=1.22.4"
"node": ">=16.17.0",

Copy link
Copy Markdown
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)


module.exports = {
core: {
builder: 'webpack5',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment thread components/package.json
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.0.3",
"jest": "^27.1.0",

Copy link
Copy Markdown
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)

];

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

Copy link
Copy Markdown
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

@Super-Chama
Super-Chama marked this pull request as ready for review January 4, 2023 08:15
opera >= 12
safari >= 5
chrome >= 56
> 1%

Copy link
Copy Markdown
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.

2 participants