Skip to content

Commit

Permalink
feat(*): update to discord.js v13.7.0 (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
favna authored May 15, 2022
1 parent 01ee79c commit a2ea376
Show file tree
Hide file tree
Showing 9 changed files with 2,229 additions and 2,657 deletions.
5 changes: 5 additions & 0 deletions .cliff-jumperrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: framework
packagePath: .
org: sapphire
monoRepo: false
commitMessageTemplate: 'chore(release): release {{new-version}}'
15 changes: 8 additions & 7 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
with:
fetch-depth: 0
repository: ${{ github.event.inputs.repository || 'sapphiredev/framework' }}
ref: ${{ github.event.inputs.ref || 'main' }}
- name: Add TypeScript problem matcher
run: echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v16
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # renovate: tag=v2
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # tag=v3
with:
node-version: 16
cache: yarn
registry-url: https://registry.npmjs.org/
registry-url: https://registry.yarnpkg.com/
- name: Install Dependencies
run: yarn --immutable
- name: Bump Version & Publish
run: |
# Resolve the tag to be used. "next" for push events, "pr-{prNumber}" for dispatch events.
TAG=$([[ ${{ github.event_name }} == 'push' ]] && echo 'next' || echo 'pr-${{ github.event.inputs.prNumber }}')
# Bump the version
yarn standard-version --skip.commit --skip.tag --prerelease "${TAG}.$(git rev-parse --verify --short HEAD)"
yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
yarn config set npmPublishRegistry "https://registry.yarnpkg.com"
# Publish to NPM
npm publish --tag ${TAG} || true
yarn bump --preid "${TAG}.$(git rev-parse --verify --short HEAD)"
yarn npm publish --tag ${TAG}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
768 changes: 0 additions & 768 deletions .yarn/releases/yarn-3.1.1.cjs

This file was deleted.

786 changes: 786 additions & 0 deletions .yarn/releases/yarn-3.2.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'

yarnPath: .yarn/releases/yarn-3.1.1.cjs
yarnPath: .yarn/releases/yarn-3.2.1.cjs
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
All notable changes to this project will be documented in this file.

### [2.4.1](https://github.com/sapphiredev/framework/compare/v2.4.0...v2.4.1) (2022-02-18)

Expand Down
64 changes: 64 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[changelog]
header = """
# Changelog
All notable changes to this project will be documented in this file.\n
"""
body = """
{% if version %}\
# [{{ version | trim_start_matches(pat="v") }}]\
{% if previous %}\
{% if previous.version %}\
(https://github.com/sapphiredev/framework/compare/{{ previous.version }}...{{ version }})\
{% else %}
(https://github.com/sapphiredev/framework/tree/{{ version }})\
{% endif %}\
{% endif %} \
- ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}\
# [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
## {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}\
**{{commit.scope}}:** \
{% endif %}\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/sapphiredev/framework/commit/{{ commit.id }}))\
{% if commit.breaking %}\
\n\n {% raw %} {% endraw %} ### 💥 Breaking Changes:\n \
{% for breakingChange in commit.footers %}\
{% raw %} {% endraw %} - {{ breakingChange }}\n\
{% endfor %}\
{% endif %}\
{% endfor %}
{% endfor %}\n
"""
trim = true
footer = ""

[git]
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = "^feat", group = "🚀 Features"},
{ message = "^fix", group = "🐛 Bug Fixes"},
{ message = "^docs", group = "📝 Documentation"},
{ message = "^perf", group = "🏃 Performance"},
{ message = "^refactor", group = "🏠 Refactor"},
{ message = "^typings", group = "⌨️ Typings"},
{ message = "^types", group = "⌨️ Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "🚨 Deprecation"},
{ message = "^revert", skip = true},
{ message = "^style", group = "🪞 Styling"},
{ message = "^test", group = "🧪 Testing"},
{ message = "^chore", skip = true},
{ message = "^ci", skip = true},
{ message = "^build", skip = true},
{ body = ".*security", group = "🛡️ Security"},
]
filter_commits = true
tag_pattern = "v[0-9]*"
ignore_tags = ""
topo_order = false
sort_commits = "newest"
86 changes: 42 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,71 +12,71 @@
"license": "MIT",
"scripts": {
"lint": "eslint src tests scripts --ext mjs,ts --fix",
"format": "prettier --write {src,tests,scripts}/**/*.ts",
"format": "prettier --write \"{src,tests,scripts}/**/*.ts\"",
"docs": "typedoc",
"test": "jest",
"test:watch": "jest --watch",
"update": "yarn up \"*\" -i",
"update": "yarn upgrade-interactive",
"clean": "node scripts/clean-dist.mjs",
"build": "tsc -b src && rollup -c scripts/rollup.bundle.ts && gen-esm-wrapper dist/index.js dist/index.mjs",
"watch": "tsc -b src -w",
"sversion": "standard-version",
"commit": "git-cz",
"cz": "git-cz",
"prepublishOnly": "rollup-type-bundler -v -e url events",
"prepare": "husky install .github/husky"
"bump": "cliff-jumper",
"check-update": "cliff-jumper --dry-run",
"postinstall": "husky install .github/husky",
"prepack": "rollup-type-bundler -v -e url events && pinst --disable",
"postpack": "pinst --enable"
},
"dependencies": {
"@sapphire/discord-utilities": "^2.8.0",
"@sapphire/discord.js-utilities": "^4.8.1",
"@sapphire/pieces": "^3.2.0",
"@sapphire/ratelimits": "^2.3.1",
"@sapphire/utilities": "^3.3.0",
"@sapphire/discord-utilities": "^2.10.3",
"@sapphire/discord.js-utilities": "^4.11.0",
"@sapphire/pieces": "^3.3.3",
"@sapphire/ratelimits": "^2.4.4",
"@sapphire/utilities": "^3.6.2",
"lexure": "^0.17.0",
"tslib": "^2.3.1"
"tslib": "^2.4.0"
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@commitlint/cli": "^16.3.0",
"@commitlint/config-conventional": "^16.2.4",
"@favware/cliff-jumper": "^1.8.0",
"@favware/npm-deprecate": "^1.0.4",
"@favware/rollup-type-bundler": "^1.0.7",
"@sapphire/eslint-config": "^4.2.1",
"@sapphire/prettier-config": "^1.3.0",
"@sapphire/ts-config": "^3.3.1",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.18",
"@types/ws": "^8.2.2",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"@sapphire/eslint-config": "^4.3.4",
"@sapphire/prettier-config": "^1.4.3",
"@sapphire/ts-config": "^3.3.4",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.33",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"cz-conventional-changelog": "^3.3.0",
"discord.js": "^13.6.0",
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.3.0",
"discord.js": "^13.7.0",
"eslint": "^8.15.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"gen-esm-wrapper": "^1.1.3",
"husky": "^7.0.4",
"jest": "^27.5.1",
"jest-circus": "^27.5.1",
"lint-staged": "^12.3.4",
"prettier": "^2.5.1",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": "^12.4.1",
"pinst": "^3.0.0",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3",
"rollup": "^2.67.3",
"rollup": "^2.73.0",
"rollup-plugin-version-injector": "^1.3.3",
"standard-version": "^9.3.2",
"ts-jest": "^27.1.3",
"ts-node": "^10.5.0",
"typedoc": "^0.22.11",
"ts-jest": "^28.0.2",
"typedoc": "^0.22.15",
"typedoc-plugin-djs-links": "^1.0.4",
"typedoc-plugin-mdn-links": "^1.0.5",
"typescript": "^4.5.5"
"typedoc-plugin-mdn-links": "^1.0.6",
"typescript": "^4.6.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sapphiredev/framework.git"
},
"files": [
"dist",
"!dist/*.tsbuildinfo"
"dist/**/*.js*",
"dist/**/*.mjs*",
"dist/**/*.d*"
],
"engines": {
"node": ">=16.6.0",
Expand Down Expand Up @@ -112,10 +112,8 @@
"access": "public"
},
"resolutions": {
"ansi-regex": "^5.0.1",
"jest-environment-jsdom": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.3.tgz",
"jest-jasmine2": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.3.tgz"
"ansi-regex": "^5.0.1"
},
"prettier": "@sapphire/prettier-config",
"packageManager": "yarn@3.1.1"
"packageManager": "yarn@3.2.1"
}
Loading

0 comments on commit a2ea376

Please sign in to comment.