Skip to content

Commit

Permalink
chore: update deps (QwikDev#4388)
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat authored Jun 5, 2023
1 parent 1099a11 commit cb4df52
Show file tree
Hide file tree
Showing 16 changed files with 1,327 additions and 1,002 deletions.
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,57 +57,57 @@
"devDependencies": {
"@builder.io/partytown": "0.8.0",
"@clack/prompts": "^0.6.3",
"@microsoft/api-documenter": "^7.22.5",
"@microsoft/api-extractor": "7.34.9",
"@microsoft/api-documenter": "^7.22.7",
"@microsoft/api-extractor": "7.35.1",
"@napi-rs/cli": "2.12.1",
"@napi-rs/triples": "1.1.0",
"@node-rs/helper": "1.3.3",
"@octokit/action": "3.18.1",
"@playwright/test": "1.33.0",
"@playwright/test": "1.34.3",
"@types/brotli": "1.3.1",
"@types/cross-spawn": "6.0.2",
"@types/eslint": "8.37.0",
"@types/eslint": "8.40.0",
"@types/express": "4.17.17",
"@types/mri": "1.1.1",
"@types/node": "^20.1.4",
"@types/node": "^20.2.5",
"@types/path-browserify": "1.0.0",
"@types/prettier": "2.7.2",
"@types/prettier": "2.7.3",
"@types/prompts": "2.4.4",
"@types/semver": "7.5.0",
"@types/which-pm-runs": "1.0.0",
"@typescript-eslint/eslint-plugin": "5.59.5",
"@typescript-eslint/parser": "5.59.5",
"@typescript-eslint/utils": "5.59.5",
"all-contributors-cli": "6.25.1",
"@typescript-eslint/eslint-plugin": "5.59.8",
"@typescript-eslint/parser": "5.59.8",
"@typescript-eslint/utils": "5.59.8",
"all-contributors-cli": "6.26.0",
"brotli": "1.3.3",
"commitizen": "4.3.0",
"concurrently": "8.0.1",
"create-qwik": "workspace:*",
"cross-spawn": "7.0.3",
"cz-conventional-changelog": "3.3.0",
"esbuild": "0.16.16",
"eslint": "8.40.0",
"eslint": "8.41.0",
"eslint-plugin-no-only-tests": "3.1.0",
"eslint-plugin-qwik": "^1.1.2",
"eslint-plugin-qwik": "^1.1.4",
"execa": "7.1.1",
"express": "4.18.2",
"install": "^0.13.0",
"monaco-editor": "^0.38.0",
"mri": "1.2.0",
"ora": "6.3.0",
"ora": "6.3.1",
"path-browserify": "1.0.1",
"prettier": "2.8.8",
"pretty-quick": "^3.1.3",
"prompts": "2.4.2",
"rollup": "3.21.7",
"rollup": "3.23.0",
"semver": "7.5.1",
"snoop": "^1.0.4",
"terser": "5.17.3",
"terser": "5.17.6",
"tsm": "2.2.2",
"typescript": "5.0.4",
"undici": "5.22.1",
"uvu": "0.5.6",
"vite": "4.3.5",
"vite": "4.3.9",
"vite-tsconfig-paths": "4.2.0",
"watchlist": "0.3.1",
"which-pm-runs": "1.1.0",
Expand Down
28 changes: 14 additions & 14 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,38 +22,38 @@
"@algolia/autocomplete-core": "1.7.4",
"@algolia/client-search": "4.14.3",
"@builder.io/partytown": "0.8.0",
"@builder.io/qwik": "BuilderIo/qwik-build#main",
"@builder.io/qwik-city": "BuilderIo/qwik-city-build#main",
"@builder.io/qwik": "github:BuilderIo/qwik-build#main",
"@builder.io/qwik-city": "github:BuilderIo/qwik-city-build#main",
"@builder.io/qwik-react": "0.5.0",
"@builder.io/sdk-qwik": "^0.3.0",
"@builder.io/sdk-qwik": "^0.3.1",
"@docsearch/css": "3.3.4",
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.13.0",
"@mui/x-data-grid": "^6.4.0",
"@types/prismjs": "^1.26.0",
"@types/react": "18.2.6",
"@types/react": "18.2.7",
"@types/react-dom": "18.2.4",
"algoliasearch": "4.16.0",
"autoprefixer": "10.4.14",
"fflate": "0.7.4",
"fflate": "0.8.0",
"gray-matter": "4.0.3",
"postcss": "8.4.23",
"postcss": "8.4.24",
"prism-themes": "1.9.0",
"prismjs": "1.29.0",
"puppeteer": "^20.2.0",
"puppeteer": "^20.5.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"rehype-pretty-code": "^0.9.5",
"rehype-pretty-code": "^0.9.6",
"shiki": "^0.14.2",
"tailwindcss": "3.3.2",
"tsm": "2.3.0",
"typescript": "5.0.4",
"undici": "5.22.1",
"uvu": "0.5.6",
"vite": "4.3.5",
"vite-plugin-inspect": "^0.7.26",
"wrangler": "^2.20.0"
"vite": "4.3.9",
"vite-plugin-inspect": "^0.7.28",
"wrangler": "^3.0.1"
},
"author": "Builder.io Team",
"bugs": {
Expand All @@ -65,9 +65,9 @@
"license": "MIT",
"private": true,
"dependencies": {
"@supabase/supabase-js": "^2.21.0",
"@unpic/core": "^0.0.22",
"@unpic/qwik": "^0.0.17",
"@supabase/supabase-js": "^2.24.0",
"@unpic/core": "^0.0.24",
"@unpic/qwik": "^0.0.19",
"openai": "^3.2.1",
"qwik-image": "^0.0.4",
"snarkdown": "^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-qwik/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"node": ">=16"
},
"devDependencies": {
"@types/eslint": "8.37.0",
"@types/eslint": "8.40.0",
"@types/estree": "^1.0.1",
"redent": "^4.0.0"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/qwik-city/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@
"devDependencies": {
"@azure/functions": "^3.5.1",
"@builder.io/qwik": "workspace:*",
"@microsoft/api-extractor": "7.34.9",
"@microsoft/api-extractor": "7.35.1",
"@netlify/edge-functions": "^2.0.0",
"@types/marked": "4.3.0",
"@types/mdast": "^3.0.11",
"@types/node": "^20.1.4",
"@types/node": "^20.2.5",
"@types/refractor": "3.0.2",
"estree-util-value-to-estree": "3.0.1",
"github-slugger": "2.0.0",
Expand All @@ -116,8 +116,8 @@
"unified": "10.1.2",
"unist-util-visit": "4.1.2",
"uvu": "0.5.6",
"vite": "4.3.5",
"yaml": "2.2.2"
"vite": "4.3.9",
"yaml": "2.3.1"
},
"license": "MIT",
"homepage": "https://qwik.builder.io/",
Expand Down
4 changes: 2 additions & 2 deletions packages/qwik-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
},
"devDependencies": {
"@builder.io/qwik": "workspace:*",
"@types/react": "18.2.6",
"@types/react": "18.2.7",
"@types/react-dom": "18.2.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.0.4",
"vite": "4.3.5"
"vite": "4.3.9"
},
"peerDependencies": {
"@builder.io/qwik": ">=0.22.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"devDependencies": {
"@builder.io/qwik": "workspace:*",
"vite": "4.3.5",
"vite": "4.3.9",
"vite-plugin-static-copy": "^0.15.0"
},
"peerDependencies": {
Expand Down
27 changes: 12 additions & 15 deletions packages/qwik/src/optimizer/core/src/inlined_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn convert_inlined_fn(
return (None, false);
}

let rendered_expr = render_expr(expr.clone());
let rendered_expr = render_expr(&expr);
if rendered_expr.len() > 150 {
return (None, false);
}
Expand Down Expand Up @@ -177,15 +177,16 @@ impl VisitMut for ReplaceIdentifiers {
}
}

fn render_expr(mut expr: ast::Expr) -> String {
fn render_expr(expr: &ast::Expr) -> String {
let mut expr = expr.clone();
let mut buf = Vec::new();
let source_map = Lrc::new(SourceMap::default());
let writer = Box::new(JsWriter::new(Lrc::clone(&source_map), "\n", &mut buf, None));
let config = swc_ecmascript::codegen::Config {
minify: true,
target: ast::EsVersion::latest(),
ascii_only: false,
omit_last_semi: true,
omit_last_semi: false,
};
let mut emitter = swc_ecmascript::codegen::Emitter {
cfg: config,
Expand All @@ -196,18 +197,14 @@ fn render_expr(mut expr: ast::Expr) -> String {
expr.visit_mut_with(&mut hygiene_with_config(Default::default()));
expr.visit_mut_with(&mut fixer(None));
emitter
.emit_script(&ast::Script {
body: vec![ast::Stmt::Expr(ast::ExprStmt {
span: DUMMY_SP,
expr: Box::new(expr),
})],
shebang: None,
.emit_module_item(&ast::ModuleItem::Stmt(ast::Stmt::Expr(ast::ExprStmt {
span: DUMMY_SP,
})
expr: Box::new(expr),
})))
.expect("Should emit");
unsafe {
str::from_utf8_unchecked(&buf)
.trim_end_matches(';')
.to_string()
}

str::from_utf8(&buf)
.expect("should be utf8")
.trim_end_matches(';')
.to_string()
}
Loading

0 comments on commit cb4df52

Please sign in to comment.