Skip to content

Commit d98d9bc

Browse files
committed
release: 3.0.0-rc.3
1 parent 04199a5 commit d98d9bc

File tree

9 files changed

+789
-805
lines changed

9 files changed

+789
-805
lines changed

demo/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
"version": "1.0.0",
55
"private": true,
66
"dependencies": {
7-
"@nativescript/core": "~8.7.0",
8-
"@vueuse/components": "^10.9.0",
9-
"@vueuse/core": "^10.9.0",
7+
"@nativescript/core": "~8.8.6",
8+
"@vueuse/components": "^12.5.0",
9+
"@vueuse/core": "^12.5.0",
1010
"nativescript-vue": "link:.."
1111
},
1212
"devDependencies": {
13-
"@nativescript/android": "~8.7.0",
14-
"@nativescript/ios": "~8.7.0",
15-
"@nativescript/types": "~8.7.0",
13+
"@nativescript/android": "~8.8.6",
14+
"@nativescript/ios": "~8.8.2",
15+
"@nativescript/types": "~8.8.0",
1616
"@nativescript/webpack": "~5.0.0",
17-
"typescript": "^5.4.5"
17+
"typescript": "^5.7.3"
1818
}
1919
}

demo/src/components/Home.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { ListItem, onMounted, onUnmounted } from 'nativescript-vue';
33
import { goHome } from '../composables/goHome';
44
import Test from './Test.vue';
5+
import { $closeModal } from 'nativescript-vue';
56
67
withDefaults(
78
defineProps<{
@@ -10,9 +11,7 @@ withDefaults(
1011
items?: (string | number)[];
1112
enabled?: boolean;
1213
}>(),
13-
{
14-
depth: 0,
15-
},
14+
{ depth: 0 },
1615
);
1716
1817
const message = 'Hello World!!';
@@ -25,11 +24,7 @@ interface Test {
2524
2625
const items: Test[] = Array(1000)
2726
.fill(0)
28-
.map((_, i) => ({
29-
name: `Item ${i}`,
30-
foo: i,
31-
bool: true,
32-
}));
27+
.map((_, i) => ({ name: `Item ${i}`, foo: i, bool: true }));
3328
3429
function selector(item: ListItem<Test>) {
3530
return item.even ? 'default' : 'odd';
@@ -42,6 +37,10 @@ onMounted(() => {
4237
onUnmounted(() => {
4338
console.log('UNMOUNTED HOME');
4439
});
40+
41+
function close() {
42+
$closeModal('closed via $closeModal');
43+
}
4544
</script>
4645

4746
<template>
@@ -55,6 +54,7 @@ onUnmounted(() => {
5554
text="Close Modal"
5655
@tap="$modal?.close({ depth, foo: 'bar' }, 'arg1', 'arg2')"
5756
/>
57+
<Button text="Close Modal (via $closeModal)" @tap="close" />
5858

5959
<Test />
6060

demo/yarn.lock

Lines changed: 202 additions & 123 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-vue",
3-
"version": "3.0.0-rc.2",
3+
"version": "3.0.0-rc.3",
44
"main": "dist/index.js",
55
"files": [
66
"dist/",
@@ -17,24 +17,24 @@
1717
"prepack": "npm run build && npm run pack:template"
1818
},
1919
"dependencies": {
20-
"@vue/compiler-sfc": "^3.4.23",
20+
"@vue/compiler-sfc": "^3.5.13",
2121
"@vue/devtools": "^6.5.1",
22-
"@vue/runtime-core": "^3.4.23",
23-
"@vue/shared": "^3.4.23",
24-
"cross-spawn": "^7.0.3",
22+
"@vue/runtime-core": "^3.5.13",
23+
"@vue/shared": "^3.5.13",
24+
"cross-spawn": "^7.0.6",
2525
"set-value": "^4.1.0",
2626
"vue-loader": "^17.4.2"
2727
},
2828
"devDependencies": {
29-
"@commitlint/cli": "^19.2.2",
30-
"@commitlint/config-conventional": "^19.2.2",
31-
"@nativescript/core": "~8.7.1",
32-
"@nativescript/webpack": "~5.0.21",
33-
"esbuild": "^0.20.2",
34-
"lint-staged": "^15.2.2",
35-
"prettier": "^3.2.5",
29+
"@commitlint/cli": "^19.7.1",
30+
"@commitlint/config-conventional": "^19.7.1",
31+
"@nativescript/core": "~8.8.6",
32+
"@nativescript/webpack": "~5.0.22",
33+
"esbuild": "^0.25.0",
34+
"lint-staged": "^15.4.3",
35+
"prettier": "^3.5.0",
3636
"simple-git-hooks": "^2.11.1",
37-
"typescript": "^5.4.5"
37+
"typescript": "^5.7.3"
3838
},
3939
"simple-git-hooks": {
4040
"pre-commit": "npx --no-install lint-staged --config=package.json",
@@ -48,5 +48,6 @@
4848
"prettier": {
4949
"useTabs": false,
5050
"singleQuote": true
51-
}
51+
},
52+
"packageManager": "yarn@1.22.19+sha256.732620bac8b1690d507274f025f3c6cfdc3627a84d9642e38a07452cc00e0f2e"
5253
}

packages/stackblitz-template/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
"main": "src/app.ts",
44
"version": "1.0.0",
55
"dependencies": {
6-
"@nativescript/core": "~8.7.0",
7-
"nativescript-vue": "3.0.0-rc.2"
6+
"@nativescript/core": "~8.8.6",
7+
"nativescript-vue": "3.0.0-rc.3"
88
},
99
"devDependencies": {
10-
"@nativescript/preview-cli": "1.0.13",
10+
"@nativescript/preview-cli": "1.0.14",
1111
"@nativescript/stackblitz": "0.0.8",
1212
"@nativescript/tailwind": "~2.1.0",
13-
"@nativescript/types": "~8.7.0",
13+
"@nativescript/types": "~8.8.0",
1414
"@nativescript/webpack": "~5.0.0",
1515
"@types/node": "~17.0.21",
1616
"tailwindcss": "^3.4.3",
17-
"typescript": "^5.4.5"
17+
"typescript": "^5.7.3"
1818
},
1919
"stackblitz": {
2020
"installDependencies": true,

packages/template-blank/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "@nativescript-vue/template-blank",
33
"main": "src/app.ts",
4-
"version": "3.0.0-rc.2",
4+
"version": "3.0.0-rc.3",
55
"dependencies": {
6-
"@nativescript/core": "~8.7.0",
7-
"nativescript-vue": "3.0.0-rc.2"
6+
"@nativescript/core": "~8.8.6",
7+
"nativescript-vue": "3.0.0-rc.3"
88
},
99
"devDependencies": {
1010
"@nativescript/tailwind": "~2.1.0",
11-
"@nativescript/types": "~8.7.0",
11+
"@nativescript/types": "~8.8.0",
1212
"@nativescript/webpack": "~5.0.0",
1313
"@types/node": "~17.0.21",
1414
"tailwindcss": "^3.4.3",
15-
"typescript": "^5.4.5"
15+
"typescript": "^5.7.3"
1616
}
1717
}

src/plugins/modals.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ declare module '@vue/runtime-core' {
2222
options?: ShowModalOptions<P, T>,
2323
) => Promise<T | false | undefined>;
2424
$closeModal: <T = any>(data: T, ...args: any[]) => void;
25-
$modal: {
26-
close: <T = any>(data: T, ...args: any[]) => void;
27-
};
25+
$modal: { close: <T = any>(data: T, ...args: any[]) => void };
2826
}
2927
}
3028

@@ -141,10 +139,7 @@ export async function $showModal<T = any, P = any>(
141139
context.config.globalProperties = Object.assign(
142140
{},
143141
context.config.globalProperties,
144-
{
145-
$closeModal: closeModal,
146-
$modal: { close: closeModal },
147-
},
142+
{ $closeModal: closeModal, $modal: { close: closeModal } },
148143
);
149144

150145
view.mount(root);
@@ -157,4 +152,4 @@ export function $closeModal(...args) {
157152
const view = modalStack.at(-1);
158153

159154
view?.context.config.globalProperties.$closeModal(...args);
160-
}
155+
}

src/renderer/patchProp.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import type {
1111
ComponentInternalInstance,
1212
ElementNamespace,
1313
RendererOptions,
14-
SuspenseBoundary,
1514
} from '@vue/runtime-core';
1615

1716
export const patchProp: RendererOptions['patchProp'] = (
@@ -20,10 +19,7 @@ export const patchProp: RendererOptions['patchProp'] = (
2019
prevValue: any,
2120
nextValue: any,
2221
namespace?: ElementNamespace,
23-
prevChildren?: any[],
2422
parentComponent?: ComponentInternalInstance | null,
25-
parentSuspense?: SuspenseBoundary | null,
26-
unmountChildren?: any,
2723
) => {
2824
switch (key) {
2925
// special

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy