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

fix(deps)!: update dependencies to use @openedx scope #21

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { createConfig } = require('@edx/frontend-build');
const { createConfig } = require('@openedx/frontend-build');

const config = createConfig('eslint', {
rules: {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Component library mocking utility intended for imported libraries of many comple

#### Usage
```js
jest.mock('@edx/paragon', () => jest.requireActual('@edx/react-unit-test-utils').mockComponents({
jest.mock('@openedx/paragon', () => jest.requireActual('@edx/react-unit-test-utils').mockComponents({
Button: 'Button',
Icon: 'Icon',
Form: {
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { createConfig } = require('@edx/frontend-build');
const { createConfig } = require('@openedx/frontend-build');

module.exports = createConfig('babel-preserve-modules');
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { createConfig } = require('@edx/frontend-build');
const { createConfig } = require('@openedx/frontend-build');

module.exports = createConfig('jest', {
setupFilesAfterEnv: [
Expand Down
11,309 changes: 5,833 additions & 5,476 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
],
"dependencies": {
"@edx/browserslist-config": "^1.1.1",
"@edx/frontend-platform": "4.6.0",
"@edx/paragon": "^20.44.0",
"@reduxjs/toolkit": "^1.5.1",
"@testing-library/dom": "^9.3.0",
"@testing-library/jest-dom": "^5.16.5",
Expand All @@ -45,7 +43,9 @@
},
"devDependencies": {
"@edx/browserslist-config": "^1.1.1",
"@edx/frontend-build": "12.8.38",
"@edx/frontend-platform": "7.0.1",
"@openedx/frontend-build": "13.0.27",
"@openedx/paragon": "22.0.0",
"axios": "^1.4.0",
"es-check": "^2.3.0",
"husky": "2.7.0",
Expand All @@ -56,7 +56,9 @@
"semantic-release": "^19.0.3"
},
"peerDependencies": {
"@edx/frontend-build": ">=8.1.0",
"@edx/frontend-platform": "^7.0.1",
"@openedx/frontend-build": "^13.0.27",
"@openedx/paragon": "^21.5.7 || ^22.0.0",
"react": "^16.9.0 || ^17.0.0"
}
}
2 changes: 1 addition & 1 deletion src/examples/ExampleComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

import { useIntl } from '@edx/frontend-platform/i18n';

import { Form } from '@edx/paragon';
import { Form } from '@openedx/paragon';

import { StrictDict } from 'utils';
import ImportedComponent from './ImportedComponent';
Expand Down
2 changes: 1 addition & 1 deletion src/examples/ExampleComponent.test.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { formatMessage, shallow } from 'testUtils';
import { Form } from '@edx/paragon';
import { Form } from '@openedx/paragon';
import { useIntl } from '@edx/frontend-platform/i18n';

import ImportedComponent from './ImportedComponent';
Expand Down
2 changes: 1 addition & 1 deletion src/examples/ref.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useExampleComponentData from './hooks';
import ExampleComponent from './ExampleComponent';

jest.unmock('react');
jest.unmock('@edx/paragon');
jest.unmock('@openedx/paragon');
jest.mock('./ImportedComponent', () => 'imported-component');
jest.mock('./hooks', () => ({ __esModule: true, default: jest.fn() }));

Expand Down
2 changes: 1 addition & 1 deletion src/setupTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jest.mock('@edx/frontend-platform/i18n', () => {
};
});

jest.mock('@edx/paragon', () => jest.requireActual('testUtils').mockComponents({
jest.mock('@openedx/paragon', () => jest.requireActual('testUtils').mockComponents({
Form: {
Control: 'Form.Control',
Group: 'Form.Group',
Expand Down
Loading