@backstage/create-app 0.5.9 → 0.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @backstage/create-app
2
2
 
3
+ ## 0.5.10
4
+
5
+ ### Patch Changes
6
+
7
+ - e830cdd: Updated `packages/app` as well as the root `package.json` type resolutions to use React v18.
8
+
9
+ The `@testing-library/*` dependencies have also been updated to the ones compatible with React v18, and the test at `packages/app/src/App.test.tsx` had been updated to use more modern patterns that work better with these new versions.
10
+
11
+ For information on how to migrate existing apps to React v18, see the [migration guide](https://backstage.io/docs/tutorials/react18-migration)
12
+
3
13
  ## 0.5.9
4
14
 
5
15
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -65,7 +65,7 @@ ${chalk__default["default"].red(`${error}`)}
65
65
  }
66
66
  }
67
67
 
68
- var version$O = "1.22.0";
68
+ var version$O = "1.22.1";
69
69
 
70
70
  var version$N = "1.4.7";
71
71
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/create-app",
3
3
  "description": "A CLI that helps you create your own Backstage app",
4
- "version": "0.5.9",
4
+ "version": "0.5.10",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -42,8 +42,8 @@
42
42
  "typescript": "~5.2.0"
43
43
  },
44
44
  "resolutions": {
45
- "@types/react": "^17",
46
- "@types/react-dom": "^17"
45
+ "@types/react": "^18",
46
+ "@types/react-dom": "^18"
47
47
  },
48
48
  "prettier": "@spotify/prettier-config",
49
49
  "lint-staged": {
@@ -42,8 +42,8 @@
42
42
  "@material-ui/core": "^4.12.2",
43
43
  "@material-ui/icons": "^4.9.1",
44
44
  "history": "^5.0.0",
45
- "react": "^17.0.2",
46
- "react-dom": "^17.0.2",
45
+ "react": "^18.0.2",
46
+ "react-dom": "^18.0.2",
47
47
  "react-router": "^6.3.0",
48
48
  "react-router-dom": "^6.3.0",
49
49
  "react-use": "^17.2.4"
@@ -51,10 +51,10 @@
51
51
  "devDependencies": {
52
52
  "@backstage/test-utils": "^{{version '@backstage/test-utils'}}",
53
53
  "@playwright/test": "^1.32.3",
54
- "@testing-library/jest-dom": "^5.10.1",
55
- "@testing-library/react": "^12.1.3",
54
+ "@testing-library/jest-dom": "^6.0.0",
55
+ "@testing-library/react": "^14.0.0",
56
56
  "@testing-library/user-event": "^14.0.0",
57
- "@testing-library/dom": "^8.0.0",
57
+ "@testing-library/dom": "^9.0.0",
58
58
  "@types/react-dom": "*",
59
59
  "cross-env": "^7.0.0"
60
60
  },
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { renderWithEffects } from '@backstage/test-utils';
2
+ import { render, waitFor } from '@testing-library/react';
3
3
  import App from './App';
4
4
 
5
5
  describe('App', () => {
@@ -20,7 +20,10 @@ describe('App', () => {
20
20
  ] as any,
21
21
  };
22
22
 
23
- const rendered = await renderWithEffects(<App />);
24
- expect(rendered.baseElement).toBeInTheDocument();
23
+ const rendered = render(<App />);
24
+
25
+ await waitFor(() => {
26
+ expect(rendered.baseElement).toBeInTheDocument();
27
+ });
25
28
  });
26
29
  });
@@ -1,6 +1,6 @@
1
1
  import '@backstage/cli/asset-types';
2
2
  import React from 'react';
3
- import ReactDOM from 'react-dom';
3
+ import ReactDOM from 'react-dom/client';
4
4
  import App from './App';
5
5
 
6
- ReactDOM.render(<App />, document.getElementById('root'));
6
+ ReactDOM.createRoot(document.getElementById('root')!).render(<App />);