Skip to content

Commit 680987c

Browse files
committed
release: v1.0.0-beta.24
1 parent cca1e18 commit 680987c

File tree

12 files changed

+61
-65
lines changed

12 files changed

+61
-65
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# [1.0.0-beta.24](https://github.com/pikax/vue-composable/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2021-10-17)
2+
3+
### Bug Fixes
4+
5+
- pnpm support ([50986c8](https://github.com/pikax/vue-composable/commit/50986c8bf10c952d72b6ab5381655b1e6a40fbeb))
6+
7+
# [1.0.0-beta.24](https://github.com/pikax/vue-composable/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2021-10-17)
8+
9+
### Bug Fixes
10+
11+
- pnpm support ([50986c8](https://github.com/pikax/vue-composable/commit/50986c8bf10c952d72b6ab5381655b1e6a40fbeb))
12+
113
# [1.0.0-beta.23](https://github.com/pikax/vue-composable/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2021-04-24)
214

315
### Bug Fixes

docs/api/axios.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import { AxiosInstance } from "axios";
77
import { AxiosRequestConfig } from "axios";
88
import { AxiosResponse } from "axios";
9-
import { ComputedRef } from "@vue/composition-api";
9+
import { ComputedRef } from "@vue/runtime-core";
1010
import { PromiseResultFactory } from "vue-composable";
11-
import { Ref } from "@vue/composition-api";
11+
import { Ref } from "@vue/runtime-core";
1212

1313
// Warning: (ae-forgotten-export) The symbol "MakeAxiosReturn" needs to be exported by the entry point index.d.ts
1414
//

docs/api/cookie.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
```ts
66
import { default as Cookies_2 } from "js-cookie";
7-
import { Ref } from "@vue/composition-api";
7+
import { Ref } from "@vue/runtime-core";
88

99
// Warning: (ae-forgotten-export) The symbol "UseCookieReturn" needs to be exported by the entry point index.d.ts
1010
//

docs/api/vue-composable.api.md

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,22 @@
55
```ts
66
/// <reference types="node" />
77

8+
import { App } from "@vue/runtime-core";
89
import type { ComponentState } from "@vue/devtools-api";
9-
import { ComputedRef } from "@vue/composition-api";
10+
import { ComputedRef } from "@vue/runtime-core";
1011
import { Context } from "vm";
1112
import type { CustomInspectorNode } from "@vue/devtools-api";
1213
import type { CustomInspectorOptions } from "@vue/devtools-api";
1314
import type { CustomInspectorState } from "@vue/devtools-api";
15+
import { DeepReadonly } from "@vue/runtime-core";
1416
import { DevtoolsPluginApi } from "@vue/devtools-api";
15-
import { InjectionKey } from "@vue/composition-api";
17+
import { InjectionKey } from "@vue/runtime-core";
1618
import type { InspectedComponentData } from "@vue/devtools-api";
17-
import { PluginFunction } from "vue";
18-
import { provide } from "@vue/composition-api";
19-
import { Ref } from "@vue/composition-api";
19+
import { Plugin as Plugin_2 } from "@vue/runtime-core";
20+
import { provide } from "@vue/runtime-core";
21+
import { Ref } from "@vue/runtime-core";
2022
import { TimelineEvent } from "@vue/devtools-api";
21-
import { UnwrapRef } from "@vue/composition-api";
22-
import { VueConstructor } from "vue";
23+
import { UnwrapRef } from "@vue/runtime-core";
2324

2425
// @public (undocumented)
2526
export interface ArrayPaginationResult<T extends Array<any>>
@@ -472,8 +473,6 @@ export function getCssVariableFor(
472473
// @public
473474
export function getDevtools(): DevtoolsPluginApi<unknown> | undefined;
474475

475-
// Warning: (ae-forgotten-export) The symbol "Plugin" needs to be exported by the entry point index.d.ts
476-
//
477476
// @public (undocumented)
478477
export const hydrationPlugin: Plugin_2;
479478

@@ -1093,10 +1092,7 @@ export function setCssVariableFor(
10931092
): void;
10941093

10951094
// @public
1096-
export function setDevtools(
1097-
app: VueConstructor,
1098-
api: DevtoolsPluginApi<unknown>
1099-
): void;
1095+
export function setDevtools(app: App, api: DevtoolsPluginApi<unknown>): void;
11001096

11011097
// @public
11021098
export function setI18n<
@@ -1427,11 +1423,7 @@ export function useDebounce<T extends Procedure>(
14271423
): T;
14281424

14291425
// @public (undocumented)
1430-
export const UseDevtoolsApp: (
1431-
app: VueConstructor,
1432-
id?: string,
1433-
label?: string
1434-
) => void;
1426+
export const UseDevtoolsApp: (app: App, id?: string, label?: string) => void;
14351427

14361428
// @public (undocumented)
14371429
export function useDevtoolsComponentState(
@@ -2219,8 +2211,6 @@ export function useStorage<T>(
22192211
sync?: boolean
22202212
): LocalStorageReturn<T>;
22212213

2222-
// Warning: (ae-forgotten-export) The symbol "DeepReadonly" needs to be exported by the entry point index.d.ts
2223-
//
22242214
// @public (undocumented)
22252215
export function useTimeline<T>(
22262216
value: Ref<T>,
@@ -2317,7 +2307,7 @@ export const VUE_VERSION: "2" | "3";
23172307
// @public (undocumented)
23182308
export const VueComposableDevtools: {
23192309
install(
2320-
app: VueConstructor,
2310+
app: App,
23212311
options?: {
23222312
id: string;
23232313
label: string;
@@ -2411,7 +2401,7 @@ export type WrapRef<T> = T extends Ref<any> ? T : Ref<T>;
24112401

24122402
// Warnings were encountered during analysis:
24132403
//
2414-
// dist/v2/packages/vue-composable/src/validation/validation.d.ts:72:5 - (ae-forgotten-export) The symbol "ToObjectOutput" needs to be exported by the entry point index.d.ts
2404+
// dist/v3/packages/vue-composable/src/validation/validation.d.ts:72:5 - (ae-forgotten-export) The symbol "ToObjectOutput" needs to be exported by the entry point index.d.ts
24152405

24162406
// (No @packageDocumentation comment for this package)
24172407
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.0-beta.23",
2+
"version": "1.0.0-beta.24",
33
"name": "vue-composable-monorepo",
44
"workspaces": [
55
"packages/*"

packages/axios/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue-composable/axios",
3-
"version": "1.0.0-beta.23",
3+
"version": "1.0.0-beta.24",
44
"description": "@vue-composable/axios",
55
"main": "index.js",
66
"module": "dist/axios.esm-bundler.js",
@@ -45,7 +45,7 @@
4545
"vue-composable-axios-fix": "./scripts/postinstall.js"
4646
},
4747
"dependencies": {
48-
"vue-composable": "^1.0.0-beta.23"
48+
"vue-composable": "^1.0.0-beta.24"
4949
},
5050
"peerDependencies2": {
5151
"@vue/composition-api": "^1.0.0-beta.14",
@@ -60,9 +60,5 @@
6060
"@types/node": "^16.4.7",
6161
"@vue/runtime-core": "^3.0.7",
6262
"typescript": "^4.2.4"
63-
},
64-
"peerDependencies": {
65-
"@vue/composition-api": "^1.0.0-beta.14",
66-
"axios": "^0.22.0"
6763
}
6864
}

packages/axios/scripts/postinstall.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const AgentCommands = {
1212
npm: "npm i",
1313
yarn: "yarn add",
1414
pnpm: "pnpm add",
15-
cnpm: "cnpm i"
15+
cnpm: "cnpm i",
1616
};
1717

1818
function loadModule(name) {
@@ -28,7 +28,7 @@ function installModules(names) {
2828
names = Array.isArray(names) ? names : [names];
2929
execSync(`${command} ${names.join(" ")}`, {
3030
stdio: "inherit",
31-
cwd: userRoot
31+
cwd: userRoot,
3232
});
3333
}
3434

@@ -52,8 +52,13 @@ function switchVersion(version) {
5252
}
5353
const files = fs.readdirSync(versionPath);
5454

55-
files.forEach(f => {
56-
fs.copyFileSync(path.join(versionPath, f), path.join(dist, f));
55+
files.forEach((f) => {
56+
const dfile = path.join(dist, f);
57+
try {
58+
// pnpm fix
59+
fs.unlinkSync(dfile);
60+
} catch (_) {}
61+
fs.copyFileSync(path.join(versionPath, f), dfile);
5762
});
5863

5964
switchPeerdependencies(version);

packages/cookie/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue-composable/cookie",
3-
"version": "1.0.0-beta.23",
3+
"version": "1.0.0-beta.24",
44
"description": "@vue-composable/cookie",
55
"main": "index.js",
66
"module": "dist/cookie.esm-bundler.js",
@@ -45,7 +45,7 @@
4545
"vue-composable-cookie-fix": "./scripts/postinstall.js"
4646
},
4747
"dependencies": {
48-
"vue-composable": "^1.0.0-beta.23"
48+
"vue-composable": "^1.0.0-beta.24"
4949
},
5050
"peerDependencies2": {
5151
"@vue/composition-api": "^1.0.0-beta.14",
@@ -62,10 +62,5 @@
6262
"@types/node": "^16.4.7",
6363
"@vue/runtime-core": "^3.0.7",
6464
"typescript": "^4.2.4"
65-
},
66-
"peerDependencies": {
67-
"@vue/composition-api": "^1.0.0-beta.14",
68-
"@types/js-cookie": "^2.2.6",
69-
"js-cookie": "^2.2.1"
7065
}
7166
}

packages/cookie/scripts/postinstall.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const AgentCommands = {
1212
npm: "npm i",
1313
yarn: "yarn add",
1414
pnpm: "pnpm add",
15-
cnpm: "cnpm i"
15+
cnpm: "cnpm i",
1616
};
1717

1818
function loadModule(name) {
@@ -28,7 +28,7 @@ function installModules(names) {
2828
names = Array.isArray(names) ? names : [names];
2929
execSync(`${command} ${names.join(" ")}`, {
3030
stdio: "inherit",
31-
cwd: userRoot
31+
cwd: userRoot,
3232
});
3333
}
3434

@@ -52,8 +52,13 @@ function switchVersion(version) {
5252
}
5353
const files = fs.readdirSync(versionPath);
5454

55-
files.forEach(f => {
56-
fs.copyFileSync(path.join(versionPath, f), path.join(dist, f));
55+
files.forEach((f) => {
56+
const dfile = path.join(dist, f);
57+
try {
58+
// pnpm fix
59+
fs.unlinkSync(dfile);
60+
} catch (_) {}
61+
fs.copyFileSync(path.join(versionPath, f), dfile);
5762
});
5863

5964
switchPeerdependencies(version);

packages/vue-composable/package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-composable",
3-
"version": "1.0.0-beta.23",
3+
"version": "1.0.0-beta.24",
44
"description": "vue-composable",
55
"main": "index.js",
66
"module": "dist/vue-composable.esm-bundler.js",
@@ -52,9 +52,5 @@
5252
"peerDependencies2": {
5353
"@vue/composition-api": "^1.0.0-beta.14",
5454
"vue": "^2.6.10"
55-
},
56-
"peerDependencies": {
57-
"@vue/composition-api": "^1.0.0-beta.14",
58-
"vue": "^2.6.10"
5955
}
6056
}

0 commit comments

Comments
 (0)