Skip to content

Commit

Permalink
chore: update deps (QwikDev#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat authored Sep 15, 2022
1 parent 9bf8d62 commit 80f37d1
Show file tree
Hide file tree
Showing 9 changed files with 384 additions and 550 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
"devDependencies": {
"@builder.io/partytown": "^0.6.4",
"@builder.io/qwik-dom": "2.1.19",
"@microsoft/api-extractor": "7.29.5",
"@microsoft/api-extractor": "7.31.1",
"@napi-rs/cli": "2.11.4",
"@napi-rs/triples": "1.1.0",
"@node-rs/helper": "1.3.3",
"@octokit/action": "3.18.1",
"@playwright/test": "1.25.1",
"@playwright/test": "1.25.2",
"@types/brotli": "^1.3.1",
"@types/cross-spawn": "6.0.2",
"@types/eslint": "8.4.6",
Expand All @@ -66,36 +66,36 @@
"@types/prettier": "^2.7.0",
"@types/semver": "7.3.12",
"@types/which-pm-runs": "^1.0.0",
"@typescript-eslint/eslint-plugin": "5.34.0",
"@typescript-eslint/parser": "5.34.0",
"@typescript-eslint/utils": "5.34.0",
"all-contributors-cli": "^6.20.0",
"@typescript-eslint/eslint-plugin": "5.37.0",
"@typescript-eslint/parser": "5.37.0",
"@typescript-eslint/utils": "5.37.0",
"all-contributors-cli": "^6.20.4",
"brotli": "1.3.3",
"commitizen": "4.2.5",
"concurrently": "7.3.0",
"concurrently": "7.4.0",
"cross-spawn": "^7.0.3",
"cz-conventional-changelog": "3.3.0",
"esbuild": "0.15.5",
"eslint": "8.22.0",
"esbuild": "0.15.7",
"eslint": "8.23.1",
"eslint-plugin-no-only-tests": "2.6.0",
"execa": "6.1.0",
"express": "4.18.1",
"monaco-editor": "^0.33.0",
"monaco-editor": "^0.34.0",
"mri": "1.2.0",
"node-fetch": "3.2.10",
"path-browserify": "1.0.1",
"prettier": "2.7.1",
"rollup": "2.77.0",
"rollup": "2.78.0",
"semver": "7.3.7",
"snoop": "^1.0.4",
"tailwindcss": "3.1.8",
"terser": "5.15.0",
"todomvc-app-css": "2.4.2",
"todomvc-common": "1.0.5",
"tsm": "2.2.2",
"typescript": "4.7.4",
"typescript": "4.8.3",
"uvu": "^0.5.6",
"vite": "3.0.9",
"vite": "3.1.1",
"vite-tsconfig-paths": "3.5.0",
"wasm-pack": "0.10.3",
"watchlist": "^0.3.1",
Expand Down
10 changes: 5 additions & 5 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@
"@algolia/autocomplete-core": "^1.7.1",
"@algolia/client-search": "^4.14.2",
"@builder.io/partytown": "^0.6.4",
"@builder.io/qwik": "0.0.108",
"@builder.io/qwik-city": "0.0.109",
"@builder.io/qwik": "^0.0.108",
"@builder.io/qwik-city": "^0.0.109",
"@builder.io/sdk-qwik": "^0.0.19",
"@cloudflare/kv-asset-handler": "0.2.0",
"@docsearch/css": "^3.2.1",
"algoliasearch": "^4.14.2",
"autoprefixer": "10.4.8",
"autoprefixer": "10.4.11",
"fflate": "^0.7.3",
"node-fetch": "3.2.10",
"postcss": "8.4.16",
"prism-themes": "1.9.0",
"prismjs": "^1.29.0",
"tailwindcss": "3.1.8",
"typescript": "4.7.4",
"typescript": "4.8.3",
"uvu": "0.5.6",
"vite": "3.0.9",
"vite": "3.1.1",
"wrangler": "beta"
},
"author": "Builder.io Team",
Expand Down
10 changes: 5 additions & 5 deletions packages/qwik-city/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
"@mdx-js/mdx": "2.1.3",
"@types/mdx": "2.0.2",
"source-map": "0.7.4",
"vfile": "5.3.4"
"vfile": "5.3.5"
},
"devDependencies": {
"@builder.io/qwik": "workspace:*",
"@microsoft/api-extractor": "7.29.5",
"@microsoft/api-extractor": "7.31.1",
"@types/github-slugger": "1.3.0",
"@types/marked": "4.0.6",
"@types/node": "latest",
Expand All @@ -69,17 +69,17 @@
"github-slugger": "1.4.0",
"hast-util-heading-rank": "2.1.0",
"hast-util-to-string": "2.0.0",
"marked": "4.0.19",
"marked": "4.1.0",
"refractor": "4.8.0",
"rehype-autolink-headings": "6.1.1",
"remark-frontmatter": "4.0.1",
"remark-gfm": "3.0.1",
"tsm": "2.2.2",
"typescript": "4.7.4",
"typescript": "4.8.3",
"unified": "10.1.2",
"unist-util-visit": "4.1.1",
"uvu": "0.5.6",
"vite": "3.0.9",
"vite": "3.1.1",
"yaml": "2.1.1"
},
"license": "MIT",
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 @@ -27,8 +27,8 @@
"@types/react-dom": "18.0.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "4.7.4",
"vite": "3.0.9"
"typescript": "4.8.3",
"vite": "3.1.1"
},
"peerDependencies": {
"@builder.io/qwik": ">=0.0.38",
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik/src/core/object/q-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export const isMutable = (v: any): v is MutableWrapper<any> => {
* @alpha
*/
export const unwrapProxy = <T>(proxy: T): T => {
return isObject(proxy) ? getProxyTarget<T>(proxy) ?? proxy : proxy;
return isObject(proxy) ? getProxyTarget<any>(proxy) ?? proxy : proxy;
};

export const getProxyTarget = <T extends Record<string, any>>(obj: T): T | undefined => {
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik/src/core/use/use-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const tryGetInvokeContext = (): InvokeContext | undefined => {
return undefined;
}
if (isArray(context)) {
return (document.__q_context__ = newInvokeContextFromTuple(context));
return (document.__q_context__ = newInvokeContextFromTuple(context as any));
}
return context as InvokeContext;
}
Expand Down
33 changes: 16 additions & 17 deletions packages/qwik/src/optimizer/src/plugins/vite.unit.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import path, { resolve } from 'path';
import { qwikVite } from './vite';
import type { Plugin as VitePlugin } from 'vite';
import type { OptimizerOptions } from '../types';
import type { OutputOptions } from 'rollup';
import { suite } from 'uvu';
Expand Down Expand Up @@ -39,8 +38,8 @@ vite('command: serve, mode: development', async () => {
const initOpts = {
optimizerOptions: mockOptimizerOptions(),
};
const plugin: VitePlugin = qwikVite(initOpts);
const c = (await plugin.config!({}, { command: 'serve', mode: 'development' }))!;
const plugin = qwikVite(initOpts);
const c = (await plugin.config({}, { command: 'serve', mode: 'development' }))!;
const opts = await plugin.api?.getOptions();
const build = c.build!;
const rollupOptions = build!.rollupOptions!;
Expand Down Expand Up @@ -72,8 +71,8 @@ vite('command: serve, mode: production', async () => {
const initOpts = {
optimizerOptions: mockOptimizerOptions(),
};
const plugin: VitePlugin = qwikVite(initOpts);
const c = (await plugin.config!({}, { command: 'serve', mode: 'production' }))!;
const plugin = qwikVite(initOpts);
const c = (await plugin.config({}, { command: 'serve', mode: 'production' }))!;
const opts = await plugin.api?.getOptions();
const build = c.build!;
const rollupOptions = build!.rollupOptions!;
Expand Down Expand Up @@ -106,8 +105,8 @@ vite('command: build, mode: development', async () => {
const initOpts = {
optimizerOptions: mockOptimizerOptions(),
};
const plugin: VitePlugin = qwikVite(initOpts);
const c = (await plugin.config!({}, { command: 'build', mode: 'development' }))!;
const plugin = qwikVite(initOpts);
const c = (await plugin.config({}, { command: 'build', mode: 'development' }))!;
const opts = await plugin.api?.getOptions();
const build = c.build!;
const rollupOptions = build!.rollupOptions!;
Expand Down Expand Up @@ -140,8 +139,8 @@ vite('command: build, mode: production', async () => {
const initOpts = {
optimizerOptions: mockOptimizerOptions(),
};
const plugin: VitePlugin = qwikVite(initOpts);
const c = (await plugin.config!({}, { command: 'build', mode: 'production' }))!;
const plugin = qwikVite(initOpts);
const c = (await plugin.config({}, { command: 'build', mode: 'production' }))!;
const opts = await plugin.api?.getOptions();
const build = c.build!;
const rollupOptions = build!.rollupOptions!;
Expand Down Expand Up @@ -180,8 +179,8 @@ vite('command: build, --mode production (client)', async () => {
},
};

const plugin: VitePlugin = qwikVite(initOpts);
const c: any = (await plugin.config!({}, { command: 'build', mode: 'production' }))!;
const plugin = qwikVite(initOpts);
const c: any = (await plugin.config({}, { command: 'build', mode: 'production' }))!;
const opts = await plugin.api?.getOptions();
const build = c.build!;
const rollupOptions = build!.rollupOptions!;
Expand All @@ -198,8 +197,8 @@ vite('command: build, --ssr entry.server.tsx', async () => {
const initOpts = {
optimizerOptions: mockOptimizerOptions(),
};
const plugin: VitePlugin = qwikVite(initOpts);
const c = (await plugin.config!(
const plugin = qwikVite(initOpts);
const c = (await plugin.config(
{ build: { ssr: resolve(cwd, 'src', 'entry.server.tsx') } },
{ command: 'build', mode: '' }
))!;
Expand Down Expand Up @@ -240,8 +239,8 @@ vite('command: serve, --mode ssr', async () => {
outDir: resolve(cwd, 'ssr-dist'),
},
};
const plugin: VitePlugin = qwikVite(initOpts);
const c: any = (await plugin.config!(
const plugin = qwikVite(initOpts);
const c: any = (await plugin.config(
{ build: { emptyOutDir: true } },
{ command: 'serve', mode: 'ssr' }
))!;
Expand All @@ -264,8 +263,8 @@ vite('command: build, --mode lib', async () => {
const initOpts = {
optimizerOptions: mockOptimizerOptions(),
};
const plugin: VitePlugin = qwikVite(initOpts);
const c: any = (await plugin.config!(
const plugin = qwikVite(initOpts);
const c: any = (await plugin.config(
{
build: {
lib: {
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/e2e/src/components/factory/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { component$, implicit$FirstArg, QRL } from '@builder.io/qwik';

export function factoryQrl<P>(componentQRL: QRL<(props: P) => any>) {
export function factoryQrl<P extends Record<string, any>>(componentQRL: QRL<(props: P) => any>) {
return component$((props: P) => {
const component = componentQRL.resolve();
return (
Expand Down
Loading

0 comments on commit 80f37d1

Please sign in to comment.