Skip to content

Commit ee50ec1

Browse files
Merge pull request #77 from oslabs-beta/john/import3
John/import3
2 parents 3e7a6c2 + 550e6d5 commit ee50ec1

File tree

6 files changed

+22
-18
lines changed

6 files changed

+22
-18
lines changed

package-react/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-react/package.json

Lines changed: 7 additions & 7 deletions
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.9",
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

Lines changed: 4 additions & 2 deletions
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

Lines changed: 7 additions & 5 deletions
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/package.json

Lines changed: 1 addition & 1 deletion
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"
2020
},
21-
"version": "1.1.5",
21+
"version": "1.1.6",
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": [
2424
"react",

package-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-query-rewind/vue-query-rewind",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
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": [

0 commit comments

Comments
 (0)