Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2022-03-13 16:27:20 +08:00
32 changed files with 176 additions and 33 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@vant/cli",
"version": "4.0.0",
"version": "4.0.1",
"type": "module",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
+1 -1
View File
@@ -4,7 +4,7 @@ const isMobile = /ios|iphone|ipod|ipad|android/.test(ua);
export function decamelize(str, sep = '-') {
return str
.replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2')
.replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
.replace(/([A-Z])([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
.toLowerCase();
}
+1 -1
View File
@@ -72,7 +72,7 @@ export function pascalize(str: string): string {
export function decamelize(str: string, sep = '-') {
return str
.replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2')
.replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
.replace(/([A-Z])([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
.toLowerCase();
}
@@ -5,7 +5,31 @@
{{~header}}
{{~/if}}
{{#if references~}}
{{~#each references}} [{{~this.repository}}#{{this.issue}}]({{~@root.repoUrl}}/{{~@root.issue}}/{{this.issue}}){{/each}}
{{~else}} [{{shortHash}}]({{~@root.repoUrl}}/{{~@root.commit}}/{{hash}})
{{~#each references}} [{{~this.repository}}#{{this.issue}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}
/{{~@root.issue}}/{{this.issue}}){{/each}}
{{~else}} [{{shortHash}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}
/{{~@root.commit}}/{{hash}})
{{~/if}}
@@ -1,3 +1,15 @@
### [v{{version}}]({{~@root.repoUrl}}/compare/{{previousTag}}...{{currentTag}})
### [v{{version}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}
/compare/{{previousTag}}...{{currentTag}})
`{{date}}`