Skip to content

Commit 1c85cc5

Browse files
authored
Merge pull request #80 from oslabs-beta/dev
Dev
2 parents ebd2992 + a7c4911 commit 1c85cc5

File tree

14 files changed

+84
-47
lines changed

14 files changed

+84
-47
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public/
135135

136136
# macOS
137137
*.DS_Store
138+
.DS_Store
138139
*.AppleDouble
139140
*.LSOverride
140141

License.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Released under MIT License
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+24-3
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,37 @@ React Query Rewind introduces a powerful DevTool extension designed to work in c
3535

3636
1. Download npm package into your application.
3737

38+
**React**
39+
3840
```sh
3941
npm i -D react-query-rewind
4042
```
4143

42-
2. Import the ReactQueryRewind component into the root of your applicaiton.
44+
**Svelte**
45+
46+
```sh
47+
npm i --save-dev @react-query-rewind/svelte-query-rewind
48+
```
49+
50+
**Vue**
51+
52+
```sh
53+
npm i --save-dev @react-query-rewind/vue-query-rewind
54+
```
4355

44-
_picture of importing the component_
56+
2. Import the ReactQueryRewind component into the root of your applicaiton.
4557

4658
```javascript
4759
import ReactQueryRewind from "react-query-rewind";
4860
```
4961

62+
_Note: Some older versions of NextJS default to the commonJS version of the package, causing apps to error_
63+
_If you encounter this error, import the component with:_
64+
65+
```javascript
66+
import ReactQueryRewind from "../../node_modules/react-query-rewind/dist/esm/index.js";
67+
```
68+
5069
3. Place ReactQueryRewind next to the root of your application inside the QueryClientProvider component.
5170

5271
```javascript
@@ -108,7 +127,9 @@ Rui Fan - [GitHub](https://github.com/ruifan-IU) - [LinkedIn](https://www.linked
108127
[![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/@teeringe/react-query-rewind-time-travel-debugging-made-simple-46aaeeafd497)
109128
[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/react-query-rewind/)
110129

111-
Project Link: [React Query Rewind](https://github.com/oslabs-beta/react-query-rewind-chrome)
130+
Project Link: [React Query Rewind](https://github.com/oslabs-beta/react-query-rewind)
131+
132+
Website: [reactqueryrewind.com](https://reactqueryrewind.com/)
112133

113134
# License
114135
[MIT](https://www.mit.edu/~amini/LICENSE.md)

package-react/README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,17 @@ React Query Rewind introduces a powerful DevTool extension designed to work in c
4141

4242
2. Import the ReactQueryRewind component into the root of your applicaiton.
4343

44-
_picture of importing the component_
45-
4644
```javascript
4745
import ReactQueryRewind from "react-query-rewind";
4846
```
4947

48+
_Note: Some older versions of NextJS default to the commonJS version of the package, causing apps to error_
49+
_If you encounter this error, import the component with:_
50+
51+
```javascript
52+
import ReactQueryRewind from "../../node_modules/react-query-rewind/dist/esm/index.js";
53+
```
54+
5055
3. Place ReactQueryRewind next to the root of your application inside the QueryClientProvider component.
5156

5257
```javascript
@@ -108,7 +113,9 @@ Rui Fan - [GitHub](https://github.com/ruifan-IU) - [LinkedIn](https://www.linked
108113
[![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/@teeringe/react-query-rewind-time-travel-debugging-made-simple-46aaeeafd497)
109114
[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/react-query-rewind/)
110115
111-
Project Link: [React Query Rewind](https://github.com/oslabs-beta/react-query-rewind-chrome)
116+
Project Link: [React Query Rewind](https://github.com/oslabs-beta/react-query-rewind)
117+
118+
Website: [reactqueryrewind.com](https://reactqueryrewind.com/)
112119
113120
# License
114121
[MIT](https://www.mit.edu/~amini/LICENSE.md)

package-react/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-react/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type": "git",
1919
"url": "git+https://github.com/oslabs-beta/react-query-rewind.git"
2020
},
21-
"version": "2.1.6",
21+
"version": "2.1.11",
2222
"description": "React Query Rewind is a library that helps developers debug applications that use React Query (ie TanStack Query) by letting them time travel through state changes directly in their chrome dev tools",
2323
"keywords": [
2424
"react",
@@ -30,7 +30,7 @@
3030
],
3131
"private": false,
3232
"type": "module",
33-
"main": "dist/cjs/index.js",
33+
"main": "dist/cjs/index.cjs",
3434
"module": "dist/esm/index.js",
3535
"types": "dist/cjs/index.d.ts",
3636
"files": [
@@ -48,31 +48,31 @@
4848
"link-package": "npm link && (cd example/client && npm link react-query-rewind)",
4949
"link-dependencies": "npm link example/client/node_modules/react example/client/node_modules/react-dom example/client/node_modules/@tanstack/react-query",
5050
"unlink-package": "(cd example/client && npm unlink react-query-rewind) && npm unlink",
51-
"package-setup-1": "npm i && npm run install-example && npm run link-dependencies && npm run watch",
51+
"package-setup-1": "npm run clean && npm i && npm run install-example && npm run link-dependencies && npm run watch",
5252
"package-setup-2": "npm run link-package && npm run example",
5353
"install-algolia": "cd react-examples-tanstack/algolia && npm i",
5454
"link-package-algolia": "npm link && (cd react-examples-tanstack/algolia && npm link react-query-rewind)",
5555
"link-dependencies-algolia": "npm link react-examples-tanstack/algolia/node_modules/react react-examples-tanstack/algolia/node_modules/react-dom example/client/node_modules/@tanstack/react-query",
5656
"unlink-package-algolia": "(cd react-examples-tanstack/algolia && npm unlink react-query-rewind) && npm unlink",
57-
"package-setup-1-algolia": "npm i && npm run install-algolia && npm run link-dependencies-algolia && npm run watch",
57+
"package-setup-1-algolia": "npm run clean && npm i && npm run install-algolia && npm run link-dependencies-algolia && npm run watch",
5858
"package-setup-2-algolia": "npm run link-package-algolia && (cd react-examples-tanstack/algolia && npm run dev)",
5959
"install-basic": "cd react-examples-tanstack/basic && npm i",
6060
"link-package-basic": "npm link && (cd react-examples-tanstack/basic && npm link react-query-rewind)",
6161
"link-dependencies-basic": "npm link react-examples-tanstack/basic/node_modules/react react-examples-tanstack/basic/node_modules/react-dom example/client/node_modules/@tanstack/react-query",
6262
"unlink-package-basic": "(cd react-examples-tanstack/basic && npm unlink react-query-rewind) && npm unlink",
63-
"package-setup-1-basic": "npm i && npm run install-basic && npm run link-dependencies-basic && npm run watch",
63+
"package-setup-1-basic": "npm run clean && npm i && npm run install-basic && npm run link-dependencies-basic && npm run watch",
6464
"package-setup-2-basic": "npm run link-package-basic && (cd react-examples-tanstack/basic && npm run dev)",
6565
"install-basic-typescript": "cd react-examples-tanstack/basic-typescript && npm i",
6666
"link-package-basic-typescript": "npm link && (cd react-examples-tanstack/basic-typescript && npm link react-query-rewind)",
6767
"link-dependencies-basic-typescript": "npm link react-examples-tanstack/basic-typescript/node_modules/react react-examples-tanstack/basic-typescript/node_modules/react-dom example/client/node_modules/@tanstack/react-query",
6868
"unlink-package-basic-typescript": "(cd react-examples-tanstack/basic-typescript && npm unlink react-query-rewind) && npm unlink",
69-
"package-setup-1-basic-typescript": "npm i && npm run install-basic-typescript && npm run link-dependencies-basic-typescript && npm run watch",
69+
"package-setup-1-basic-typescript": "npm run clean && npm i && npm run install-basic-typescript && npm run link-dependencies-basic-typescript && npm run watch",
7070
"package-setup-2-basic-typescript": "npm run link-package-basic-typescript && (cd react-examples-tanstack/basic-typescript && npm run dev)",
7171
"install-pagination": "cd react-examples-tanstack/pagination && npm i",
7272
"link-package-pagination": "npm link && (cd react-examples-tanstack/pagination && npm link react-query-rewind)",
7373
"link-dependencies-pagination": "npm link react-examples-tanstack/pagination/node_modules/react react-examples-tanstack/pagination/node_modules/react-dom example/client/node_modules/@tanstack/react-query",
7474
"unlink-package-pagination": "(cd react-examples-tanstack/pagination && npm unlink react-query-rewind) && npm unlink",
75-
"package-setup-1-pagination": "npm i && npm run install-pagination && npm run link-dependencies-pagination && npm run watch",
75+
"package-setup-1-pagination": "npm run clean && npm i && npm run install-pagination && npm run link-dependencies-pagination && npm run watch",
7676
"package-setup-2-pagination": "npm run link-package-pagination && (cd react-examples-tanstack/pagination && npm run dev)"
7777
},
7878
"license": "MIT",

package-react/react-examples-tanstack/pagination/src/pages/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import React from 'react'
24
import axios from 'axios'
35
import {
@@ -8,15 +10,15 @@ import {
810
keepPreviousData,
911
} from '@tanstack/react-query'
1012
import { ReactQueryDevtools } from '@tanstack/react-query-devtools'
11-
// import ReactQueryRewind from 'react-query-rewind'
13+
import ReactQueryRewind from 'react-query-rewind'
1214

1315
const queryClient = new QueryClient()
1416

1517
export default function App() {
1618
return (
1719
<QueryClientProvider client={queryClient}>
1820
<Example />
19-
{/* <ReactQueryRewind /> */}
21+
<ReactQueryRewind />
2022
</QueryClientProvider>
2123
)
2224
}

package-react/rollup.config.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ export default {
1111
input: 'src/index.tsx', // Main TypeScript file of our package
1212
output: [
1313
{
14-
file: 'dist/cjs/index.js', // CommonJS format
14+
file: 'dist/cjs/index.cjs', // CommonJS format
1515
format: 'cjs',
16-
sourcemap: true
16+
sourcemap: true,
17+
exports: "named"
1718
},
1819
{
1920
file: 'dist/esm/index.js', // ES Module format
@@ -27,10 +28,11 @@ export default {
2728
commonjs(), // Converts CommonJS modules to ES6
2829
typescript({ tsconfig: './tsconfig.json' }), // TypeScript plugin
2930
babel({
30-
exclude: 'node_modules/**', // Babel for transpiling React and ES6
31-
presets: ['@babel/preset-react']
31+
babelHelpers: 'bundled',
32+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
33+
exclude: 'node_modules/**'
3234
}),
33-
terser(), // Minifies the bundles
35+
// terser(), // Minifies the bundles
3436
]
3537
};
3638

package-svelte/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ Svelte Query Rewind introduces a powerful DevTool extension designed to work in
3636
1. Download npm package into your application as a dev dependency.
3737

3838
```sh
39-
npm i --save-dev react-query-rewind
39+
npm i --save-dev @react-query-rewind/svelte-query-rewind
4040
```
4141

4242
2. Import the ReactQueryRewind component into the root of your applicaiton.
4343

44-
_picture of importing the component_
45-
4644
```javascript
47-
import ReactQueryRewind from 'react-query-rewind';
45+
import ReactQueryRewind from '@react-query-rewind/svelte-query-rewind;`
4846
```
4947
5048
3. Place ReactQueryRewind next to the root of your application inside the QueryClientProvider component.
@@ -97,7 +95,9 @@ Rui Fan - [GitHub](https://github.com/ruifan-IU) - [LinkedIn](https://www.linked
9795
[![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/@teeringe/react-query-rewind-time-travel-debugging-made-simple-46aaeeafd497)
9896
[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/react-query-rewind/)
9997
100-
Project Link: [React Query Rewind](https://github.com/oslabs-beta/react-query-rewind-chrome)
98+
Project Link: [React Query Rewind](https://github.com/oslabs-beta/react-query-rewind)
99+
100+
Website: [reactqueryrewind.com](https://reactqueryrewind.com/)
101101
102102
# License
103103

package-svelte/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-svelte/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-query-rewind",
2+
"name": "@react-query-rewind/svelte-query-rewind",
33
"contributors": [
44
{
55
"name": "John Dunn"
@@ -16,12 +16,12 @@
1616
],
1717
"repository": {
1818
"type": "git",
19-
"url": "git+https://github.com/oslabs-beta/react-query-rewind"
19+
"url": "git+https://github.com/oslabs-beta/react-query-rewind.git"
2020
},
21-
"version": "1.1.5",
21+
"version": "1.1.8",
2222
"description": "Svelte Query Rewind is a library that helps developers debug applications that use React Query (ie TanStack Query) by letting them time travel through state changes directly in their chrome dev tools",
2323
"keywords": [
24-
"react",
24+
"svelte",
2525
"react query",
2626
"tanstack query",
2727
"@tanstack",

package-vue/README.md

+8-12
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,20 @@ Vue Query Rewind introduces a powerful DevTool extension designed to work in con
3636
1. Download npm package into your application as a dev dependency.
3737

3838
```sh
39-
npm i --save-dev react-query-rewind
39+
npm i --save-dev @react-query-rewind/vue-query-rewind
4040
```
4141

4242
2. Import the ReactQueryRewind component into the root of your applicaiton.
4343

44-
_picture of importing the component_
45-
4644
```javascript
47-
import ReactQueryRewind from 'react-query-rewind';
45+
import VueQueryRewind from '@react-query-rewind/vue-query-rewind';
4846
```
4947

50-
3. Place ReactQueryRewind next to the root of your application inside the QueryClientProvider component.
48+
3. Use the VueQuery plugins
5149

5250
```javascript
53-
ReactDOM.createRoot(document.getElementById('root')!).render(
54-
<QueryClientProvider client={queryClient}>
55-
<App />
56-
<ReactQueryRewind />
57-
</QueryClientProvider>
58-
);
51+
app.use(VueQueryPlugin, { queryClient }); // from Tanstack
52+
app.use(VueQueryRewind);
5953
```
6054
6155
4. Open the Chrome DevTool Extension and start coding!
@@ -97,7 +91,9 @@ Rui Fan - [GitHub](https://github.com/ruifan-IU) - [LinkedIn](https://www.linked
9791
[![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/@teeringe/react-query-rewind-time-travel-debugging-made-simple-46aaeeafd497)
9892
[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/react-query-rewind/)
9993
100-
Project Link: [React Query Rewind](https://github.com/oslabs-beta/react-query-rewind-chrome)
94+
Project Link: [React Query Rewind](https://github.com/oslabs-beta/react-query-rewind)
95+
96+
Website: [reactqueryrewind.com](https://reactqueryrewind.com/)
10197
10298
# License
10399

package-vue/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@react-query-rewind/vue-query-rewind",
3-
"version": "1.1.5",
3+
"version": "1.1.9",
44
"description": "Vue Query Rewind is a library that helps developers debug applications that use React Query (ie TanStack Query) by letting them time travel through state changes directly in their chrome dev tools",
55
"type": "module",
66
"files": [
77
"dist"
88
],
99
"repository": {
1010
"type": "git",
11-
"url": "git+https://github.com/oslabs-beta/react-query-rewind"
11+
"url": "git+https://github.com/oslabs-beta/react-query-rewind.git"
1212
},
1313
"main": "./dist/VueQueryRewind.cjs.js",
1414
"module": "./dist/VueQueryRewind.es.js",
@@ -47,6 +47,7 @@
4747
"vue-plugin",
4848
"tanstack"
4949
],
50+
"license": "MIT",
5051
"contributors": [
5152
{
5253
"name": "John Dunn"

0 commit comments

Comments
 (0)