Skip to content

Commit

Permalink
merge release-0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
minimit committed Jun 23, 2020
1 parent 9130a8c commit 74a381a
Show file tree
Hide file tree
Showing 8 changed files with 353 additions and 208 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- release-0.14

jobs:
build:
Expand Down
45 changes: 45 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,48 @@
## [0.14.8](https://github.com/minimit/xtend-library/compare/v0.14.7...v0.14.8) (2020-06-23)


### Bug Fixes

* **toggle:** toggle off set index and direction + revision scroll inverse ([f38e4fc](https://github.com/minimit/xtend-library/commit/f38e4fc68a6b3f807d9ae0d372dc9c9d3af7baaa))

## [0.14.7](https://github.com/minimit/xtend-library/compare/v0.14.6...v0.14.7) (2020-06-23)


### Bug Fixes

* **toggle:** toggle off set index and direction + revision scroll inverse ([68791a5](https://github.com/minimit/xtend-library/commit/68791a51c5eed04fa088dfa1c2bc46fb070bd89f))
* scroll and sticky refactor events + xt-block + fixes demos ([002efd6](https://github.com/minimit/xtend-library/commit/002efd615291858119282de8483f8c9d8bd53889))
* **scroll:** fix scroll business logic start end fallback ([1271e94](https://github.com/minimit/xtend-library/commit/1271e94c07758633c4d08bbd47c9981e81dd83f2))

## [0.14.6](https://github.com/minimit/xtend-library/compare/v0.14.5...v0.14.6) (2020-06-23)


### Bug Fixes

* **scroll:** fix scroll direction + demos ([ffed1f6](https://github.com/minimit/xtend-library/commit/ffed1f6fd82f8b5168b986d4964ad4d667cbb98b))

## [0.14.5](https://github.com/minimit/xtend-library/compare/v0.14.4...v0.14.5) (2020-06-19)


### Bug Fixes

* **slider:** refactor slider nooverflow + refactor slider brands ([8952a01](https://github.com/minimit/xtend-library/commit/8952a01aa810881968ba4a78ba8322365bd19f95))

## [0.14.4](https://github.com/minimit/xtend-library/compare/v0.14.3...v0.14.4) (2020-06-19)


### Bug Fixes

* **slider:** fix slider disabled an nooverflow refactor ([abb6215](https://github.com/minimit/xtend-library/commit/abb6215b9552c5cea53cf5e0a029f4be601318ef))

## [0.14.3](https://github.com/minimit/xtend-library/compare/v0.14.2...v0.14.3) (2020-06-19)


### Bug Fixes

* **slider:** jump slider only when outside window revision wrap ([9241575](https://github.com/minimit/xtend-library/commit/92415757c670e0b79d09dcb18519b930cdd6275f))
* **slider:** jump slider only when outside window ([5ea95f5](https://github.com/minimit/xtend-library/commit/5ea95f5120a30dcaf0851dc529ff5e6d86a7f02a))

## [0.14.2](https://github.com/minimit/xtend-library/compare/v0.14.1...v0.14.2) (2020-06-19)


Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 7 additions & 28 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "xtend-library",
"version": "0.14.2",
"version": "0.14.8",
"description": "Frontend library",
"homepage": "http://getxtend.com/",
"license": "MIT",
Expand Down Expand Up @@ -36,11 +36,11 @@
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@hot-loader/react-dom": "^16.11.0",
"@semantic-release/changelog": "^3.0.6",
"@semantic-release/commit-analyzer": "^6.1.0",
"@semantic-release/git": "^7.0.8",
"@semantic-release/github": "^5.5.8",
"@semantic-release/release-notes-generator": "^7.3.5",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.0.7",
"@semantic-release/release-notes-generator": "^9.0.1",
"babel-loader": "^8.0.6",
"babel-preset-gatsby": "^0.2.29",
"clipboard": "^2.0.4",
Expand Down Expand Up @@ -83,31 +83,10 @@
"react-helmet": "^5.2.0",
"rehype-react": "^3.1.0",
"remark-grid-tables": "^1.7.1",
"semantic-release": "^15.14.0",
"semantic-release": "^17.1.0",
"terser-webpack-plugin": "^1.4.3",
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11",
"write": "^1.0.3"
},
"release": {
"branch": "master",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"package.json",
"package-lock.json",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}
}
95 changes: 95 additions & 0 deletions release.config.js
@@ -0,0 +1,95 @@
const commitAnalyzerOptions = {
preset: 'angular',
releaseRules: [
{ type: 'breaking', release: 'major' },
{ type: 'refactor', release: 'patch' },
{ type: 'config', release: 'patch' },
{ scope: 'no-release', release: false },
{ scope: 'test', release: false },
],
parserOpts: {
noteKeywords: [],
},
}

const releaseNotesGeneratorOptions = {
writerOpts: {
transform: (commit, context) => {
const issues = []

if (commit.type === 'breaking') {
commit.type = 'Breaking'
} else if (commit.type === 'feat') {
commit.type = 'Features'
} else if (commit.type === 'fix') {
commit.type = 'Bug Fixes'
} else if (commit.type === 'refactor') {
commit.type = 'Code Refactoring'
} else if (commit.type === 'config') {
commit.type = 'Config'
} else if (commit.type === 'test') {
commit.type = 'Tests'
} else if (commit.type === 'docs') {
commit.type = 'Documentation'
} else if (commit.type === 'no-release') {
return
}
if (typeof commit.hash === 'string') {
commit.shortHash = commit.hash.substring(0, 7)
}
if (typeof commit.subject === 'string') {
let url = context.repository ? `${context.host}/${context.owner}/${context.repository}` : context.repoUrl
if (url) {
url = `${url}/issues/`
// Issue URLs.
commit.subject = commit.subject.replace(/#([0-9]+)/g, (_, issue) => {
issues.push(issue)
return `[#${issue}](${url}${issue})`
})
}
if (context.host) {
// User URLs.
commit.subject = commit.subject.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g, (_, username) => {
if (username.includes('/')) {
return `@${username}`
}
return `[@${username}](${context.host}/${username})`
})
}
}
// remove references that already appear in the subject
commit.references = commit.references.filter(reference => {
if (issues.indexOf(reference.issue) === -1) {
return true
}
return false
})
return commit
},
},
}

module.exports = {
debug: true,
repositoryUrl: 'https://github.com/minimit/xtend-library',
branches: ['master', 'release-0.14', { name: 'beta', prerelease: true }, { name: 'alpha', prerelease: true }],
plugins: [
// analyze commits with conventional-changelog
['@semantic-release/commit-analyzer', commitAnalyzerOptions],
// generate changelog content with conventional-changelog
['@semantic-release/release-notes-generator', releaseNotesGeneratorOptions],
// updates the changelog file
'@semantic-release/changelog',
// publishes to npm
['@semantic-release/npm', { npmPublish: true }],
// creating a new version commit
[
'@semantic-release/git',
{
assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'],
message: 'chore(release): ${nextRelease.version} [skip ci]',
},
],
'@semantic-release/github',
],
}
1 change: 0 additions & 1 deletion src/core/toggle/toggle.js
Expand Up @@ -1222,7 +1222,6 @@ class Toggle {
return false
}
// toggle
console.log(element, force)
if (force || (self.checkOn(element) && (!e || !e.type || e.type !== 'off.trigger.xt'))) {
// auto
self.eventAutostop()
Expand Down
1 change: 1 addition & 0 deletions src/gatsby/assets/scripts/demo.js
Expand Up @@ -80,6 +80,7 @@ const formatCode = source => {
text = text.replace(new RegExp(`[ ]{0,}${id}[ ]{0,}`, 'gi'), '')
}
}

// search html tags
const re = /<[^>]*>/g
text = text.replace(re, (match, g1, g2) => {
Expand Down

0 comments on commit 74a381a

Please sign in to comment.