Skip to content

Commit a95e63f

Browse files
committed
Merge branch 'release/1.4.2'
2 parents 760c5af + a7129e8 commit a95e63f

18 files changed

Lines changed: 2267 additions & 965 deletions

.github/dependabot.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1515

1616
- name: Install pnpm
17-
uses: pnpm/action-setup@v4
17+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
1818
with:
19-
version: 9
19+
version: latest
2020
run_install: true
2121

2222
- name: Install Node.js
23-
uses: actions/setup-node@v4
23+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
2424
with:
25-
node-version: "22"
25+
node-version: "24"
2626
cache: pnpm
2727

2828
- name: Run linter

.github/workflows/release.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: GitHub Release
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
7+
jobs:
8+
create-release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
13+
14+
- name: Generate Changelog
15+
id: release_notes
16+
uses: yashanand1910/standard-release-notes@28752849855b451d0d2bee11a83a4da2d794ecf6 # v1.5.0
17+
with:
18+
version: ${{ github.ref }}
19+
20+
- name: Create GitHub Release
21+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
22+
with:
23+
tag_name: ${{ github.ref_name }}
24+
body: ${{ steps.release_notes.outputs.release_notes }}

.versionrc.cjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
tagPrefix: "",
3+
bumpFiles: [
4+
"package.json",
5+
{ filename: "tg-ad-filter.user.js", updater: "src/meta-updater.js" },
6+
{ filename: "src/meta.txt", updater: "src/meta-updater.js" }
7+
],
8+
writerOpts: {
9+
finalizeContext(context) {
10+
if (!context.commitGroups?.length) {
11+
context.commitGroups = [{ commits: [{ header: "No significant changes" }] }];
12+
}
13+
return context;
14+
}
15+
}
16+
};

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4+
5+
## 1.4.2 (2025-12-06)
6+
7+
8+
* No significant changes

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## Telegram Ad Filter
1+
# Telegram Ad Filter
22

3-
[![version](https://img.shields.io/github/tag/VChet/telegram-ad-filter.svg?label=version)](https://github.com/VChet/telegram-ad-filter/tags)
4-
[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-7fffff?style=flat)](https://github.com/neostandard/neostandard)
5-
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
6-
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/VChet/telegram-ad-filter)
3+
[![version][version-img]][version-href]
4+
[![install][install-img]][install-href]
5+
![prs-welcome][prs-welcome-img]
6+
[![ask DeepWiki][deep-wiki-img]][deep-wiki-href]
77

88
UserScript for [Telegram WebK](https://web.telegram.org/k/) that minimizes messages containing words from the [ad-word list](https://github.com/VChet/telegram-ad-filter/blob/master/blacklist.json).
99

@@ -24,13 +24,18 @@ UserScript for [Telegram WebK](https://web.telegram.org/k/) that minimizes messa
2424

2525
If you have any ideas, bug reports, or feature requests, feel free to [contribute](https://github.com/VChet/telegram-ad-filter/pulls) or report [issues](https://github.com/VChet/telegram-ad-filter/issues).
2626

27-
## Documentation
28-
29-
- [DeepWiki](https://deepwiki.com/VChet/telegram-ad-filter/7-contributing)
30-
3127
## Development
3228

3329
1. [Fork](https://github.com/VChet/telegram-ad-filter/fork) and download this repository.
3430
1. Make your changes in `tg-ad-filter.user.js`.
3531
1. Commit your changes.
3632
1. Make a pull request.
33+
34+
<!-- Badges -->
35+
[version-img]: https://img.shields.io/github/tag/VChet/telegram-ad-filter?label=version&style=flat-square
36+
[version-href]: https://github.com/VChet/telegram-ad-filter/tags
37+
[install-img]: https://img.shields.io/badge/install-UserJS-00adad?style=flat-square
38+
[install-href]: https://github.com/VChet/telegram-ad-filter/raw/master/tg-ad-filter.user.js
39+
[prs-welcome-img]: https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square
40+
[deep-wiki-img]: https://img.shields.io/badge/ask-DeepWiki-blue?style=flat-square
41+
[deep-wiki-href]: https://deepwiki.com/VChet/telegram-ad-filter

build.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

esbuild.config.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "telegram-ad-filter",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"description": "Userscript that minimizes messages containing words from the list",
55
"author": "VChet",
66
"license": "MIT",
@@ -15,22 +15,23 @@
1515
},
1616
"scripts": {
1717
"preinstall": "npx only-allow pnpm",
18-
"dev": "node watch.js",
19-
"build": "node build.js",
20-
"lint:ts": "npx tsc --noEmit",
18+
"dev": "tsdown --watch",
19+
"build": "tsdown",
20+
"lint:ts": "tsc --noEmit",
2121
"lint:js": "eslint .",
2222
"lint:js:fix": "npm run lint:js -- --fix",
2323
"lint:all": "npm run lint:ts && npm run lint:js",
24-
"preversion": "npm run build",
25-
"version": "node src/bump.cjs"
24+
"release": "npm run lint:all && commit-and-tag-version"
2625
},
2726
"devDependencies": {
28-
"@types/tampermonkey": "^5.0.4",
29-
"esbuild": "^0.25.5",
30-
"eslint": "^9.30.1",
27+
"@types/node": "^24.10.1",
28+
"@types/tampermonkey": "^5.0.5",
29+
"commit-and-tag-version": "^12.6.1",
30+
"eslint": "^9.39.1",
3131
"eslint-plugin-userscripts": "^0.5.6",
32-
"neostandard": "^0.12.1",
33-
"typescript": "^5.8.3"
32+
"neostandard": "^0.12.2",
33+
"tsdown": "^0.17.0",
34+
"typescript": "^5.9.3"
3435
},
3536
"pnpm": {
3637
"overrides": {

0 commit comments

Comments
 (0)