Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSergey committed Jul 24, 2022
1 parent e8ad411 commit 5be87b8
Show file tree
Hide file tree
Showing 73 changed files with 6,781 additions and 5,537 deletions.
12 changes: 5 additions & 7 deletions examples/1-simple-without-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
"build": "cross-env NODE_ENV=production node build"
},
"dependencies": {
"@issr/core": "1.0.0",
"@types/lodash": "^4.14.149",
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.6",
"@issr/core": "1.2.0",
"lodash": "4.17.15",
"react": "16.13.1",
"react-dom": "16.13.1"
"react": "17.0.2",
"react-dom": "17.0.2"
},
"devDependencies": {
"@rockpack/compiler": "1.9.0"
"@types/lodash": "^4.14.149",
"@rockpack/compiler": "2.0.1"
}
}
10 changes: 0 additions & 10 deletions examples/10-redux-sagas/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@ isomorphicCompiler(
backendCompiler({
src: 'src/server.jsx',
dist: 'dist',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
}),
frontendCompiler({
src: 'src/client.jsx',
dist: 'public',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
})
);
10 changes: 5 additions & 5 deletions examples/10-redux-sagas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
"build": "cross-env NODE_ENV=production node build"
},
"dependencies": {
"@issr/core": "1.0.0",
"@issr/core": "1.2.0",
"@reduxjs/toolkit": "1.1.0",
"axios": "0.19.0",
"immutable": "4.0.0-rc.12",
"koa": "2.11.0",
"koa-router": "8.0.8",
"koa-static": "5.0.0",
"react": "16.13.1",
"react-dom": "16.13.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-redux": "7.1.1",
"redux": "4.0.4",
"redux-logger": "3.0.6",
"redux-saga": "1.1.1",
"serialize-javascript": "3.0.0"
},
"devDependencies": {
"@issr/babel-plugin": "1.0.0",
"@rockpack/compiler": "1.9.0"
"@issr/babel-plugin": "1.2.0",
"@rockpack/compiler": "2.0.1"
}
}
5 changes: 5 additions & 0 deletions examples/10-redux-sagas/rockpack.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: [
'@issr/babel-plugin'
]
}
4 changes: 2 additions & 2 deletions examples/10-redux-sagas/src/containers/Image/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function* watchFetchImage(rest) {
function* fetchImageAsync(rest) {
try {
yield put(requestImage());
const { data } = yield call(() => rest.get('https://picsum.photos/id/0/info'));
yield put(requestImageSuccess({ url: data.download_url }));
const { data } = yield call(() => rest.get('https://api.github.com/users/defunkt'));
yield put(requestImageSuccess({ url: data.avatar_url }));
} catch (error) {
yield put(requestImageError());
}
Expand Down
10 changes: 0 additions & 10 deletions examples/10.1-redux-thunk/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@ isomorphicCompiler(
backendCompiler({
src: 'src/server.jsx',
dist: 'dist',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
}),
frontendCompiler({
src: 'src/client.jsx',
dist: 'public',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
})
);
10 changes: 5 additions & 5 deletions examples/10.1-redux-thunk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
"build": "cross-env NODE_ENV=production node build"
},
"dependencies": {
"@issr/core": "1.0.0",
"@issr/core": "1.2.0",
"@reduxjs/toolkit": "1.1.0",
"axios": "0.19.0",
"immutable": "4.0.0-rc.12",
"koa": "2.11.0",
"koa-router": "8.0.8",
"koa-static": "5.0.0",
"react": "16.13.1",
"react-dom": "16.13.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-redux": "7.1.1",
"redux": "4.0.4",
"redux-logger": "3.0.6",
"redux-thunk": "2.3.0",
"serialize-javascript": "3.0.0"
},
"devDependencies": {
"@issr/babel-plugin": "1.0.0",
"@rockpack/compiler": "1.9.0"
"@issr/babel-plugin": "1.2.0",
"@rockpack/compiler": "2.0.1"
}
}
5 changes: 5 additions & 0 deletions examples/10.1-redux-thunk/rockpack.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: [
'@issr/babel-plugin'
]
}
4 changes: 2 additions & 2 deletions examples/10.1-redux-thunk/src/containers/Image/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import rest from '../../utils/rest';

function getImage(dispatch) {
dispatch(requestImage());
return rest.get('https://picsum.photos/id/0/info')
return rest.get('https://api.github.com/users/defunkt')
.then(({ data }) => {
dispatch(requestImageSuccess({ url: data.download_url }));
dispatch(requestImageSuccess({ url: data.avatar_url }));
})
.catch(() => dispatch(requestImageError()))
}
Expand Down
10 changes: 0 additions & 10 deletions examples/11-apollo-graphql/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@ isomorphicCompiler(
backendCompiler({
src: 'src/server.jsx',
dist: 'dist',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
}),
frontendCompiler({
src: 'src/client.jsx',
dist: 'public',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
})
);
10 changes: 5 additions & 5 deletions examples/11-apollo-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dependencies": {
"@apollo/react-hooks": "3.1.5",
"@issr/core": "1.0.0",
"@issr/core": "1.2.0",
"apollo-cache-inmemory": "1.6.5",
"apollo-client": "2.6.8",
"apollo-link-http": "1.5.17",
Expand All @@ -16,13 +16,13 @@
"koa-router": "8.0.8",
"koa-static": "5.0.0",
"node-fetch": "2.6.0",
"react": "16.13.1",
"react": "17.0.2",
"react-apollo": "3.1.5",
"react-dom": "16.13.1",
"react-dom": "17.0.2",
"serialize-javascript": "3.0.0"
},
"devDependencies": {
"@issr/babel-plugin": "1.0.0",
"@rockpack/compiler": "1.9.0"
"@issr/babel-plugin": "1.2.0",
"@rockpack/compiler": "2.0.1"
}
}
5 changes: 5 additions & 0 deletions examples/11-apollo-graphql/rockpack.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: [
'@issr/babel-plugin'
]
}
10 changes: 0 additions & 10 deletions examples/12-dom-manipulations/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@ isomorphicCompiler(
backendCompiler({
src: 'src/server.jsx',
dist: 'dist',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
}),
frontendCompiler({
src: 'src/client.jsx',
dist: 'public',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
})
);
10 changes: 5 additions & 5 deletions examples/12-dom-manipulations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"build": "cross-env NODE_ENV=production node build"
},
"dependencies": {
"@issr/core": "1.0.0",
"@issr/core": "1.2.0",
"koa": "2.11.0",
"koa-router": "8.0.8",
"koa-static": "5.0.0",
"react": "16.13.1",
"react": "17.0.2",
"react-customscroll": "4.5.0",
"react-dom": "16.13.1",
"react-dom": "17.0.2",
"serialize-javascript": "3.0.0"
},
"devDependencies": {
"@issr/babel-plugin": "1.0.0",
"@rockpack/compiler": "1.9.0"
"@issr/babel-plugin": "1.2.0",
"@rockpack/compiler": "2.0.1"
}
}
5 changes: 5 additions & 0 deletions examples/12-dom-manipulations/rockpack.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: [
'@issr/babel-plugin'
]
}
10 changes: 0 additions & 10 deletions examples/13-nested-data-redux-graphql/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@ isomorphicCompiler(
backendCompiler({
src: 'src/server.jsx',
dist: 'dist',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
}),
frontendCompiler({
src: 'src/client.jsx',
dist: 'public',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
})
);
10 changes: 5 additions & 5 deletions examples/13-nested-data-redux-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dependencies": {
"@apollo/react-hooks": "3.1.5",
"@issr/core": "1.0.0",
"@issr/core": "1.2.0",
"@reduxjs/toolkit": "1.1.0",
"apollo-cache-inmemory": "1.6.5",
"apollo-client": "2.6.8",
Expand All @@ -18,17 +18,17 @@
"koa-router": "8.0.8",
"koa-static": "5.0.0",
"node-fetch": "2.6.0",
"react": "16.13.1",
"react": "17.0.2",
"react-apollo": "3.1.5",
"react-dom": "16.13.1",
"react-dom": "17.0.2",
"react-redux": "7.1.1",
"redux": "4.0.4",
"redux-logger": "3.0.6",
"redux-saga": "1.1.1",
"serialize-javascript": "3.0.0"
},
"devDependencies": {
"@issr/babel-plugin": "1.0.0",
"@rockpack/compiler": "1.9.0"
"@issr/babel-plugin": "1.2.0",
"@rockpack/compiler": "2.0.1"
}
}
5 changes: 5 additions & 0 deletions examples/13-nested-data-redux-graphql/rockpack.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: [
'@issr/babel-plugin'
]
}
10 changes: 0 additions & 10 deletions examples/14-nested-async-effect/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@ isomorphicCompiler(
frontendCompiler({
src: 'src/client.jsx',
dist: 'public',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
}),
backendCompiler({
src: 'src/server.jsx',
dist: 'dist',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
})
);
10 changes: 5 additions & 5 deletions examples/14-nested-async-effect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"build": "cross-env NODE_ENV=production node build"
},
"dependencies": {
"@issr/core": "1.0.0",
"@issr/core": "1.2.0",
"express": "^4.17.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"serialize-javascript": "3.0.0"
},
"devDependencies": {
"@issr/babel-plugin": "1.0.0",
"@rockpack/compiler": "1.9.0"
"@issr/babel-plugin": "1.2.0",
"@rockpack/compiler": "2.0.1"
}
}
5 changes: 5 additions & 0 deletions examples/14-nested-async-effect/rockpack.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: [
'@issr/babel-plugin'
]
}
10 changes: 0 additions & 10 deletions examples/15-nested-async-effect-2/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@ isomorphicCompiler(
backendCompiler({
src: 'src/server.jsx',
dist: 'dist',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
}),
frontendCompiler({
src: 'src/client.jsx',
dist: 'public',
babel: {
plugins: [
'@issr/babel-plugin'
]
},
})
);
Loading

0 comments on commit 5be87b8

Please sign in to comment.