Skip to content

Commit

Permalink
Merge pull request #94 from datocms/chore/drop-vue-2-support
Browse files Browse the repository at this point in the history
Drop support to Vue 2
  • Loading branch information
sistrall authored Jan 12, 2024
2 parents 1b7f16c + f9a4d85 commit bf5902d
Show file tree
Hide file tree
Showing 34 changed files with 961 additions and 22,911 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

A set of components and utilities to work faster with [DatoCMS](https://www.datocms.com/) in Vue.js environments. Integrates seamlessly with [DatoCMS's GraphQL Content Delivery API](https://www.datocms.com/docs/content-delivery-api).

- Works with Vue 3 and Vue 2;
- Works with Vue 3 (version 4 is maintaind for compatibility with Vue 2);
- TypeScript ready;
- Compatible with any data-fetching library (axios, Apollo);
- Usable both client and server side;
Expand Down Expand Up @@ -53,7 +53,6 @@ npm install vue-datocms
This repository contains a number of examples. You can use them to locally test your changes to the package:

- [Vue 3 + TypeScript + Vite](examples/vite-typescript-vue3/) ([running demo](https://vue-datocms-vite-typescript-vue3-example.vercel.app/))
- [Vue 2 + Javacript + Vue CLI](examples/vue-cli-babel-javascript-vue2/) ([running demo](https://vue-datocms-vue-cli-babel-javascript-vue2-example.vercel.app/))
- [Query subscription](examples/query-subscription/) ([running demo](https://vue-datocms-query-subscription-example.vercel.app/))
- [Site search](examples/site-search/) ([running demo](https://vue-datocms-site-search-example.vercel.app/))

Expand All @@ -66,7 +65,7 @@ npm run setup
npm run dev
```

Due to the way Vue and VueDemi work, it's not recommended to leverage `npm link` to use the working copy from the examples: that would complicate the structure of each example and it would not replicate a real-world installation. Therefore the `npm run setup` available in each example packs and installs the local copy of `vue-datocms` via a `.tgz` compressed tarball.
It's not recommended to leverage `npm link` to use the working copy from the examples: that would complicate the structure of each example and it would not replicate a real-world installation. Therefore the `npm run setup` available in each example packs and installs the local copy of `vue-datocms` via a `.tgz` compressed tarball.

<!--datocms-autoinclude-footer start-->
-----------------
Expand Down
2 changes: 1 addition & 1 deletion examples/query-subscription/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Query subscription

Example of using [datocms-listen](https://www.npmjs.com/package/datocms-listen) to implement real-time updates in a Vue 2 application.
Example of using [datocms-listen](https://www.npmjs.com/package/datocms-listen) to implement real-time updates in a Vue 3 application.

## To test locally

Expand Down
5 changes: 0 additions & 5 deletions examples/query-subscription/babel.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions examples/query-subscription/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
8 changes: 8 additions & 0 deletions examples/query-subscription/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules", "dist"]
}
Loading

3 comments on commit bf5902d

@vercel
Copy link

@vercel vercel bot commented on bf5902d Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue-datocms-vite-typescript-vue3-example – ./examples/vite-typescript-vue3

vue-datocms-vite-typescript-vue3-example-datocms.vercel.app
vue-datocms-vite-typescript-vue3-example-git-master-datocms.vercel.app
vue-datocms-vite-typescript-vue3-example.vercel.app

@vercel
Copy link

@vercel vercel bot commented on bf5902d Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue-datocms-site-search-example – ./examples/site-search

vue-datocms-site-search-example-git-master-datocms.vercel.app
vue-datocms-site-search-example.vercel.app
vue-datocms-site-search-example-datocms.vercel.app

@vercel
Copy link

@vercel vercel bot commented on bf5902d Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue-datocms-query-subscription-example – ./examples/query-subscription

vue-datocms-query-subscription-example.vercel.app
vue-datocms-query-subscription-example-git-master-datocms.vercel.app
vue-datocms-query-subscription-example-datocms.vercel.app

Please sign in to comment.