Skip to content

Commit

Permalink
upgrade deps; prepare for react 19
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Apr 28, 2024
1 parent f6417d7 commit 2e816eb
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 35 deletions.
2 changes: 1 addition & 1 deletion packages/binding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"directory": "packages/binding"
},
"dependencies": {
"rcompat": "^0.10.4"
"rcompat": "^0.11.0"
},
"peerDependencies": {
"@ruby/head-wasm-wasi": "2",
Expand Down
24 changes: 12 additions & 12 deletions packages/create-primate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,36 @@
},
"dependencies": {
"@clack/prompts": "^0.7.0",
"rcompat": "^0.10.4"
"rcompat": "^0.11.0"
},
"type": "module",
"devDependencies": {
"@angular/compiler": "^17.3.5",
"@angular/core": "^17.3.5",
"@angular/platform-browser": "^17.3.5",
"@angular/platform-server": "^17.3.5",
"@angular/ssr": "^17.3.5",
"@angular/compiler": "^17.3.6",
"@angular/core": "^17.3.6",
"@angular/platform-browser": "^17.3.6",
"@angular/platform-server": "^17.3.6",
"@angular/ssr": "^17.3.6",
"@marko/compiler": "^5.36.1",
"@marko/translator-default": "^6.0.0",
"@primate/build": "^0.5.1",
"@primate/frontend": "^0.14.1",
"@primate/session": "^0.18.0",
"@primate/store": "^0.23.1",
"@primate/types": "^0.14.0",
"babel-preset-solid": "^1.8.16",
"better-sqlite3": "^9.5.0",
"babel-preset-solid": "^1.8.17",
"better-sqlite3": "^9.6.0",
"handlebars": "^4.7.8",
"htmx.org": "^1.9.12",
"marked": "^12.0.2",
"mongodb": "^6.5.0",
"postgres": "^3.4.4",
"primate": "^0.30.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"solid-js": "^1.8.16",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"solid-js": "^1.8.17",
"surrealdb.js": "^0.11.1",
"svelte": "^4.2.15",
"vue": "^3.4.23",
"vue": "^3.4.25",
"zone.js": "^0.14.4"
}
}
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"directory": "packages/frontend"
},
"dependencies": {
"rcompat": "^0.10.4"
"rcompat": "^0.11.0"
},
"peerDependencies": {
"@angular/compiler": "17",
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"directory": "packages/i18n"
},
"dependencies": {
"rcompat": "^0.10.4"
"rcompat": "^0.11.0"
},
"peerDependencies": {
"primate": "0.30"
Expand Down
2 changes: 1 addition & 1 deletion packages/primate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"directory": "packages/primate"
},
"dependencies": {
"rcompat": "^0.10.4"
"rcompat": "^0.11.0"
},
"engines": {
"node": ">=18"
Expand Down
35 changes: 21 additions & 14 deletions packages/primate/src/hooks/route.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ const $app = {
}, config_key),
};

const r = (route, expected = route) => [route, {
default: {
get() {
return expected;
},
},
}];

const app = {
get: config_key => o.get({
location: {
Expand All @@ -44,25 +52,24 @@ const app = {
modules: {
route: [],
},
routes: await loaders.routes($app, ({ warn = true }) => (warn ? [
router: FS.Router.init({}, [
"index",
"user",
"users/[userId]a",
"comments/[commentId=comment]",
"users/[userId]/comments/[commentId]",
"users/[userId=user]/comments/[commentId]/a",
"users/[userId=user]/comments/[commentId=comment]/b",
"users/[_userId]/comments/[commentId]/d",
"users/[_userId]/comments/[_commentId]/e",
"comments2/[_commentId]",
"users2/[_userId]/[_commentId]",
"users3/[_userId]/[_commentId=_commentId]",
"users4/[_userId]/[_commentId]",
"users5/[n=n]",
"users6/[nv=nv]",
"[id=id]/[Id=Id]/[ID=ID]",
] : []).map(pathname => [pathname, { default: { get: request => request } }]),
),
// "users/[userId=user]/comments/[commentId]/a",
// "users/[userId=user]/comments/[commentId=comment]/b",
// "users/[_userId]/comments/[commentId]/d",
// "users/[_userId]/comments/[_commentId]/e",
// "comments2/[_commentId]",
// "users2/[_userId]/[_commentId]",
// "users3/[_userId]/[_commentId=_commentId]",
// "users4/[_userId]/[_commentId]",
// "users5/[n=n]",
// "users6/[nv=nv]",
// "[id=id]/[Id=Id]/[ID=ID]",
].map(r)),
types: {
user: numeric,
comment: numeric,
Expand Down
2 changes: 1 addition & 1 deletion packages/session/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"directory": "packages/session"
},
"dependencies": {
"rcompat": "^0.10.4"
"rcompat": "^0.11.0"
},
"peerDependencies": {
"primate": "0.30"
Expand Down
6 changes: 3 additions & 3 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"db:surreal": "surreal start --user test --pass test"
},
"dependencies": {
"rcompat": "^0.10.4"
"rcompat": "^0.11.0"
},
"devDependencies": {
"@primate/types": "^0.14.0",
"better-sqlite3": "^9.5.0",
"better-sqlite3": "^9.6.0",
"mongodb": "^6.5.0",
"mysql2": "^3.9.6",
"mysql2": "^3.9.7",
"postgres": "^3.4.4",
"surrealdb.js": "^0.11.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"directory": "packages/types"
},
"dependencies": {
"rcompat": "^0.10.4"
"rcompat": "^0.11.0"
},
"peerDependencies": {
"primate": "0.30"
Expand Down

0 comments on commit 2e816eb

Please sign in to comment.