Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-autogenerated-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Nov 29, 2024
2 parents 3de2779 + ed3b56a commit 1767c11
Show file tree
Hide file tree
Showing 43 changed files with 1,523 additions and 1,500 deletions.
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"labels": ["dependencies"],
"rangeStrategy": "bump",
"postUpdateOptions": ["pnpmDedupe"],
"ignoreDeps": ["@types/node", "node", "typescript"]
"ignoreDeps": ["@types/node", "node", "typescript", "vite-plugin-dts"]
}
4 changes: 2 additions & 2 deletions .github/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ runs:
- name: Setup pnpm
uses: pnpm/[email protected]
- name: Setup Node
uses: actions/setup-node@v4.0.3
uses: actions/setup-node@v4.1.0
with:
node-version-file: .nvmrc
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4.0.2
uses: actions/cache@v4.1.2
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.2
- name: Setup Tools
uses: ./.github/setup
- name: Fix formatting
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Setup Tools
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Setup Tools
uses: ./.github/setup
- name: Get base and head commits for `nx affected`
uses: nrwl/nx-set-shas@v4.0.6
uses: nrwl/nx-set-shas@v4.1.2
with:
main-branch-name: main
- name: Run Checks
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Setup Tools
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.15.1
22.11.0
6 changes: 0 additions & 6 deletions codecov.yml

This file was deleted.

8 changes: 4 additions & 4 deletions integrations/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
"test:build": "vite build && vitest && publint --strict"
},
"dependencies": {
"@tanstack/query-core": "^5.51.21",
"@tanstack/query-core": "^5.60.6",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@tanstack/config": "workspace:*",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1"
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3"
}
}
2 changes: 1 addition & 1 deletion integrations/react/tests/build.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readFileSync, readdirSync } from 'node:fs'
import { readdirSync, readFileSync } from 'node:fs'
import { fileURLToPath } from 'node:url'
import { dirname, resolve } from 'node:path'
import { describe, expect, it } from 'vitest'
Expand Down
5 changes: 5 additions & 0 deletions integrations/vanilla/snap/cjs/dynamic.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const foo = "HELLO";
exports.foo = foo;
//# sourceMappingURL=dynamic.cjs.map
1 change: 1 addition & 0 deletions integrations/vanilla/snap/cjs/dynamic.cjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions integrations/vanilla/snap/cjs/dynamic.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const foo = "HELLO";
1 change: 1 addition & 0 deletions integrations/vanilla/snap/cjs/utils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ const optionalChaining = (data) => {
var _a;
return (_a = data == null ? void 0 : data.maybe) == null ? void 0 : _a.property;
};
console.log(Promise.resolve().then(() => require("./dynamic.cjs")));
exports.optionalChaining = optionalChaining;
//# sourceMappingURL=utils.cjs.map
2 changes: 1 addition & 1 deletion integrations/vanilla/snap/cjs/utils.cjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions integrations/vanilla/snap/esm/dynamic.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const foo = "HELLO";
5 changes: 5 additions & 0 deletions integrations/vanilla/snap/esm/dynamic.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions integrations/vanilla/snap/esm/dynamic.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions integrations/vanilla/snap/esm/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integrations/vanilla/snap/esm/utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions integrations/vanilla/src/dynamic.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const foo = 'HELLO'
2 changes: 2 additions & 0 deletions integrations/vanilla/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const optionalChaining = (data: any) => {
return data?.maybe?.property
}

console.log(import('./dynamic'))
2 changes: 1 addition & 1 deletion integrations/vanilla/tests/build.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readFileSync, readdirSync } from 'node:fs'
import { readdirSync, readFileSync } from 'node:fs'
import { fileURLToPath } from 'node:url'
import { dirname, resolve } from 'node:path'
import { describe, expect, it } from 'vitest'
Expand Down
4 changes: 2 additions & 2 deletions integrations/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"test:build": "vite build && vitest && publint --strict"
},
"dependencies": {
"vue": "^3.4.38"
"vue": "^3.5.13"
},
"devDependencies": {
"@tanstack/config": "workspace:*",
"@vitejs/plugin-vue": "^5.1.2"
"@vitejs/plugin-vue": "^5.2.0"
}
}
2 changes: 1 addition & 1 deletion integrations/vue/snap/cjs/App.vue.d.cts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
export default _default;
15 changes: 3 additions & 12 deletions integrations/vue/snap/cjs/components/HelloWorld.vue.d.cts
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
declare const _default: import('vue').DefineComponent<{
msg: string;
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
msg: string;
}>>>, {}, {}>;
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToOption<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
49 changes: 22 additions & 27 deletions integrations/vue/snap/cjs/components/HelloWorld.vue2.cjs
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
"use strict";
const vue = require("vue");
const _withScopeId = (n) => (vue.pushScopeId("data-v-1d5be6d4"), n = n(), vue.popScopeId(), n);
const _hoisted_1 = { class: "card" };
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("p", null, [
/* @__PURE__ */ vue.createTextVNode(" Edit "),
/* @__PURE__ */ vue.createElementVNode("code", null, "components/HelloWorld.vue"),
/* @__PURE__ */ vue.createTextVNode(" to test HMR ")
], -1));
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("p", null, [
/* @__PURE__ */ vue.createTextVNode(" Check out "),
/* @__PURE__ */ vue.createElementVNode("a", {
href: "https://vuejs.org/guide/quick-start.html#local",
target: "_blank"
}, "create-vue"),
/* @__PURE__ */ vue.createTextVNode(", the official Vue + Vite starter ")
], -1));
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("p", null, [
/* @__PURE__ */ vue.createTextVNode(" Install "),
/* @__PURE__ */ vue.createElementVNode("a", {
href: "https://github.com/vuejs/language-tools",
target: "_blank"
}, "Volar"),
/* @__PURE__ */ vue.createTextVNode(" in your IDE for a better DX ")
], -1));
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("p", { class: "read-the-docs" }, "Click on the Vite and Vue logos to learn more", -1));
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
__name: "HelloWorld",
props: {
Expand All @@ -39,11 +16,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
type: "button",
onClick: _cache[0] || (_cache[0] = ($event) => count.value++)
}, "count is " + vue.toDisplayString(count.value), 1),
_hoisted_2
_cache[1] || (_cache[1] = vue.createElementVNode("p", null, [
vue.createTextVNode(" Edit "),
vue.createElementVNode("code", null, "components/HelloWorld.vue"),
vue.createTextVNode(" to test HMR ")
], -1))
]),
_hoisted_3,
_hoisted_4,
_hoisted_5
_cache[2] || (_cache[2] = vue.createElementVNode("p", null, [
vue.createTextVNode(" Check out "),
vue.createElementVNode("a", {
href: "https://vuejs.org/guide/quick-start.html#local",
target: "_blank"
}, "create-vue"),
vue.createTextVNode(", the official Vue + Vite starter ")
], -1)),
_cache[3] || (_cache[3] = vue.createElementVNode("p", null, [
vue.createTextVNode(" Install "),
vue.createElementVNode("a", {
href: "https://github.com/vuejs/language-tools",
target: "_blank"
}, "Volar"),
vue.createTextVNode(" in your IDE for a better DX ")
], -1)),
_cache[4] || (_cache[4] = vue.createElementVNode("p", { class: "read-the-docs" }, "Click on the Vite and Vue logos to learn more", -1))
], 64);
};
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integrations/vue/snap/esm/App.vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
export default _default;
15 changes: 3 additions & 12 deletions integrations/vue/snap/esm/components/HelloWorld.vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
declare const _default: import('vue').DefineComponent<{
msg: string;
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
msg: string;
}>>>, {}, {}>;
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToOption<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
51 changes: 23 additions & 28 deletions integrations/vue/snap/esm/components/HelloWorld.vue2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1767c11

Please sign in to comment.