Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-vite

Package Overview
Dependencies
Maintainers
3
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-vite - npm Package Compare versions

Comparing version 2.5.4 to 2.6.0

template-vue-ts/src/env.d.ts

14

CHANGELOG.md

@@ -0,1 +1,15 @@

# [2.6.0](https://github.com/vitejs/vite/compare/create-vite@2.5.4...create-vite@2.6.0) (2021-08-25)
### Bug Fixes
* **create-vite:** project name with only numbers as an argument ([#4606](https://github.com/vitejs/vite/issues/4606)) ([085a621](https://github.com/vitejs/vite/commit/085a6219ceb89052ac0a269e7ccda081e534a800))
### Features
* **create-vite:** update vue templates ([fe9ebe7](https://github.com/vitejs/vite/commit/fe9ebe7bb227979e9420ba295b892a716daaaf69))
## [2.5.4](https://github.com/vitejs/vite/compare/create-vite@2.5.3...create-vite@2.5.4) (2021-08-03)

@@ -2,0 +16,0 @@

4

index.js

@@ -6,3 +6,5 @@ #!/usr/bin/env node

const path = require('path')
const argv = require('minimist')(process.argv.slice(2))
// Avoids autoconversion to number of the project name by defining that the args
// non associated with an option ( _ ) needs to be parsed as a string. See #4606
const argv = require('minimist')(process.argv.slice(2), { string: ['_'] })
// eslint-disable-next-line node/no-restricted-require

@@ -9,0 +11,0 @@ const prompts = require('prompts')

{
"name": "create-vite",
"version": "2.5.4",
"version": "2.6.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Evan You",

@@ -21,5 +21,5 @@ {

"devDependencies": {
"vite": "^2.4.4",
"vite": "^2.5.1",
"typescript": "^4.3.2"
}
}

@@ -19,4 +19,4 @@ {

"devDependencies": {
"vite": "^2.4.4"
"vite": "^2.5.1"
}
}

@@ -15,4 +15,4 @@ {

"typescript": "^4.3.2",
"vite": "^2.4.4"
"vite": "^2.5.1"
}
}

@@ -14,4 +14,4 @@ {

"@preact/preset-vite": "^2.0.0",
"vite": "^2.4.4"
"vite": "^2.5.1"
}
}

@@ -18,4 +18,4 @@ {

"typescript": "^4.3.2",
"vite": "^2.4.4"
"vite": "^2.5.1"
}
}

@@ -15,4 +15,4 @@ {

"@vitejs/plugin-react-refresh": "^1.3.1",
"vite": "^2.4.4"
"vite": "^2.5.1"
}
}

@@ -19,4 +19,4 @@ {

"typescript": "^4.3.2",
"vite": "^2.4.4"
"vite": "^2.5.1"
}
}

@@ -13,4 +13,4 @@ {

"svelte": "^3.37.0",
"vite": "^2.4.4"
"vite": "^2.5.1"
}
}

@@ -11,4 +11,4 @@ {

"typescript": "^4.3.2",
"vite": "^2.4.4"
"vite": "^2.5.1"
}
}

@@ -10,4 +10,4 @@ {

"devDependencies": {
"vite": "^2.4.4"
"vite": "^2.5.1"
}
}

@@ -10,11 +10,11 @@ {

"dependencies": {
"vue": "^3.0.5"
"vue": "^3.2.6"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.3.0",
"@vitejs/plugin-vue": "^1.6.0",
"@vue/compiler-sfc": "^3.0.5",
"typescript": "^4.3.2",
"vite": "^2.4.4",
"vite": "^2.5.1",
"vue-tsc": "^0.2.2"
}
}

@@ -7,22 +7,6 @@ # Vue 3 + Typescript + Vite

[VSCode](https://code.visualstudio.com/) + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur). Make sure to enable `vetur.experimental.templateInterpolationService` in settings!
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
### If Using `<script setup>`
[`<script setup>`](https://github.com/vuejs/rfcs/pull/227) is a feature that is currently in RFC stage. To get proper IDE support for the syntax, use [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) instead of Vetur (and disable Vetur).
## Type Support For `.vue` Imports in TS
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can use the following:
### If Using Volar
Run `Volar: Switch TS Plugin on/off` from VSCode command palette.
### If Using Vetur
1. Install and add `@vuedx/typescript-plugin-vue` to the [plugins section](https://www.typescriptlang.org/tsconfig#plugins) in `tsconfig.json`
2. Delete `src/shims-vue.d.ts` as it is no longer needed to provide module info to Typescript
3. Open `src/main.ts` in VSCode
4. Open the VSCode command palette
5. Search and run "Select TypeScript version" -> "Use workspace version"
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.

@@ -10,9 +10,9 @@ {

"dependencies": {
"vue": "^3.0.5"
"vue": "^3.2.6"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.3.0",
"@vitejs/plugin-vue": "^1.6.0",
"@vue/compiler-sfc": "^3.0.5",
"vite": "^2.4.4"
"vite": "^2.5.1"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc