Skip to content

Commit b0a260d

Browse files
Deprecating Vue 2 support in favor of Vue 3 only
1 parent fdbcb32 commit b0a260d

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ app.component('VueDd', VueDd)
4242
```
4343
or add locally in component:
4444
```js
45-
import VueDd from 'vue-dd'
45+
import { VueDd } from 'vue-dd'
4646
```
4747
## Usage
4848

@@ -142,6 +142,20 @@ All contributions are welcome to improve this package. It is pretty feature rich
142142
## Need More?
143143
What other features, props, emits would be useful to create a world class debugging tool in Vue? Please, write to me in feature requests or submit a PR request with your code.
144144

145+
## Vue 2 Support
146+
147+
Versions up to **[email protected]** supported **Vue 2.7.5** and above, but import of the package is different from Vue 3. In Vue 2 vue-dd is imported as default and not as a destructured `VueDd`
148+
```js
149+
// to install vue-dd with Vue 2 support
150+
// yarn add [email protected]
151+
// npm install [email protected]
152+
// note: 'import VueDd...', and not 'import { VueDd }...'
153+
import VueDd from 'vue-dd'
154+
```
155+
```html
156+
<vue-dd v-model="obj" />
157+
```
158+
> Note that Vue 2 version cannot support large objects like `window`. For some reason, it reaches a stack size limit and breaks. It is a known issue in Vue 2, that's why migrate to Vue 3 ASAP in order to use the full power of **vue-dd**
145159
## Credits & Thanks
146160
> This was initially a fork of **[vue-object-view](https://github.com/ebuzek/vue-object-view)** project by **[Emanuel Buzek](https://github.com/ebuzek)**. <br />
147161
> **Huge Thank You to Emanuel Buzek** and his initial work back in 2017, as it was used as the base to create this hugely expanded version with advanced functionality.

vue-dd/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ yarn add vue-dd
3434

3535
Add globally in `main.js`:
3636
```js
37-
import VueDd from 'vue-dd'
37+
import { VueDd } from 'vue-dd'
3838
// create app
3939
const app = createApp(App)
4040
// register component
4141
app.component('VueDd', VueDd)
4242
```
4343
or add locally in component:
4444
```js
45-
import VueDd from 'vue-dd'
45+
import { VueDd } from 'vue-dd'
4646
```
4747
## Usage
4848

vue-dd/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-dd",
3-
"version": "1.2.0-dev.0",
3+
"version": "1.2.0",
44
"description": "Vue.js component for displaying JavaScript objects with circular references, forked and ported to Vue 3",
55
"exports": {
66
".": {

vue-dd/yarn-error.log

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Arguments:
2-
/usr/local/Cellar/node/18.10.0/bin/node /usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js publish --tag 1.2.0-dev.0
2+
/usr/local/Cellar/node/18.10.0/bin/node /usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js publish
33

44
PATH:
55
/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
@@ -29,7 +29,7 @@ Trace:
2929
npm manifest:
3030
{
3131
"name": "vue-dd",
32-
"version": "1.2.0-beta.7",
32+
"version": "1.2.0",
3333
"description": "Vue.js component for displaying JavaScript objects with circular references, forked and ported to Vue 3",
3434
"exports": {
3535
".": {
@@ -51,7 +51,7 @@ npm manifest:
5151
"build": "vite build"
5252
},
5353
"peerDependencies": {
54-
"vue": ">2.7.5"
54+
"vue": "^3.0.0"
5555
},
5656
"devDependencies": {
5757
"@cypress/vite-dev-server": "^5.0.2",
@@ -66,6 +66,7 @@ npm manifest:
6666
"vite-plugin-libcss": "^1.0.5",
6767
"vitest": "^0.27.1",
6868
"vue": "^3.2.45",
69+
"vue-demi": "^0.13.11",
6970
"vue-router": "^4.1.6"
7071
},
7172
"repository": {
@@ -2847,6 +2848,11 @@ Lockfile:
28472848
vite-node "0.27.3"
28482849
why-is-node-running "^2.2.2"
28492850

2851+
vue-demi@^0.13.11:
2852+
version "0.13.11"
2853+
resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.13.11.tgz#7d90369bdae8974d87b1973564ad390182410d99"
2854+
integrity sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==
2855+
28502856
vue-router@^4.1.6:
28512857
version "4.1.6"
28522858
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.1.6.tgz#b70303737e12b4814578d21d68d21618469375a1"

0 commit comments

Comments
 (0)