All notable changes to this project will be documented in this file.
Feature
- [Auth] rename DB collection name from
Auth
toAdmin
Feature
- [Category] Add
/all
API - Upgrade dependencies
Feature
- Improve global throttler
- Improve global log interceptor format
- Upgrade dependencies
Breaking Change
- Remove
/article/hottest
API
Feature
- [Article] Add
featured
field - Upgrade dependencies
Feature
- [Article] Add
mixed
language option - [Comment] Add
/calendar
API - [Expansion] Add daily statistics
- Upgrade dependencies
Feature
- Add config
REDIS.namespace
- Improve Redis Store
Feature
- Rename field
tag.articles_count
totag.article_count
- Rename field
category.articles_count
tocategory.article_count
Fix
- Fix
ArticleContext
data type - Fix
DBBackupService
error
Feature
- Upgrade nestjs v9 to v10
- Update various dependencies
- Use
pnpm
instead ofyarn
as a package management tool - Use
dayjs
instead ofmoment
- Refactor and improve cache system
- Remove field
__v
from all models - Rename field
create_at
tocreated_at
andupdate_at
toupdated_at
- Rename field
article.thumb
toarticle.thumbnail
- Rename field
article.tag
toarticle.tags
- Rename field
article.category
toarticle.categories
- Rename field
article.disabled_comment
toarticle.disabled_comments
- Add
Bing
support toSeoService
Fix
- Fix googleAPI
Credentials
type - Fix
Statistic
service error
Feature
- Update various dependencies
Feature
- Fix
mongodump
command args
Feature
/vote/site
and/vote/article
merged into/vote/post
Feature
- Add vote model
- Improve feedback service
Feature
- Anonymous user vote email.
- Add to
agent
vote notification email.
Chore
- Upgrade deps
Feature
- Remove classified dir.
- Improve DB backup mail context
Feature
- AliYun OSS to AWS S3
- Remove STSToken API for cloud storage
Feature
- [Helper] improve
nodemailer
config - [Helper] improve
akismet
types
Chore
- Upgrade deps
Feature
- [Option] add
statement
friend_links
field - Add
feedback
module
Feature
- [Article] add
lang
field
Feature
- New API
/article/calendar
- Refactoring API
/article/related/:id
to/article/:id/context
- Rename API
/article/hot
to/article/hottest
- Improve
Article
module
BugFix
- fix
{ timestamps: false }
forarticle.meta.views
article.meta.likes
article.meta.comments
comment.vote
option.meta.likes
Feature
- improve
guards
- improve
QueryParams
decorator - improve
Mongoose
types - improve
Model
>DTOs
- improve
Option
module service - improve
Expansion
statistic service - Remove query
cache
field - Rename
tag.count
category.count
to<target>.articles_count
- Add API
/article/hot
/article/related
/tag/all
- Add
PermissionPipe
ExposePipe
pipes - Rename
HttpProcessor
toResponsor
- Generate documentation by
compodoc
Feature
- [MongoDB] improve MongoDB config & backup
Feature
express-rate-limit
>@nestjs/throttler
- [Vote] add throttler
- [Disqus] add throttler
- [Comment] add throttler
Feature
- [Disqus] cache for userinfo & thread
Feature
- [Article] random related articles
- [Comment] improve email content
- [Vote] send email to admin when new vote
Feature
- [Comment] add
reviseIPLocation
service
Chore
- email text
Feature
- [Like] rename
Like
module toVote
- [Disqus] add Disqus comment module
- [Auth] rename
gravatar
toavatar
- [Article] add
disabled_comment
field - [Article] remove
t_content
field - [Option] remove
icp
field - [Option] rename
blacklist
toblocklist
- [Comment] remove
is_top
field - [Comment] add
dislikes
field - [Comment] hidden
ip
,email
fields - [Comment] add
email_hash
virtual field - [Helper] IP location services to
ip-api.com
&ipapi.co
Chore
- Upgrade deps
- Remove
geoip-lite
dep
Chore
- Improve deploy logic
Feature
- Fix archive article query options
Feature
- Remove
mongoose-paginate
- Remove
APP.LIMIT
config - Improve
AutoIncrementID.Config
- Improve global paginate config
Feature
- Remove
syndication
module - Remove
cache-manager-redis-store
- Add
archve
module - Add global logger
Chore
-
Upgrade deps
Redis
> v4nest
> v8mongoose
> v6
Chore
- Upgrade deps
- Update CI scripts
- Update ESLint config & format
Feature
- DB backup shell & path
- Support patch API to backup DB & recover DB
Chore
- Upgrade all deps
- Remove unused deps
- Update API Document
- Fix typos
- Add
cspell.json
Breaking Change
- Remove
Vlog
Music
GitHub
modules to BFF server
Chore
- Upgrade all deps
Breaking Change
- comment content HTML -> markdown text
- remove marked module
Chore
- Upgrade all deps
Feature
- support redis
password
config
Breaking Change
- add fe public path
- remove legacy folder file path for syndication
- Upgrade deps
- Fix bilibili video API url
- Add AD config field (options)
Promise
toasync await
mongoose-auto-increment
toauto-increment
mongoose-paginate
tomongoose-paginate-v2
- Add documents id field to unique index
- Improve sub documents
_id: false
option - Improve documents
enum
option
- Wallpaper module support
en
- Enable
esModuleInterop
fortsconfig
- Fix article/hotList
query.state
- Upgrade TypeScript deep
- Update
Optional Chaining
- Rename Sitemap module to Syndication module
- Add RSS service with Syndication module
- Add renewal API with Auth module
- Improve akismet module
- Remove geo-ip service
- Upgrade Nest
- Upgrade Mongoose (remove MongoDB's autoConnect)
- Upgrade RedisStore (workaround
is_cacheable_value
option) - Upgrade typegoose (Remove
getModelForSchema
) - Upgrade all dependencies
- Replace ESLint with TSLint
- Upgrade mongoose
- Update README.md
- Update FUNDING.yml
- Replace QINIU to Aliyun OSS
- Update uptoken and dbbackup module
- Remove project page with sitemap
- Add datebase backup service
- Add actions
- Update global console method
- 更新 所有依赖
- 更新 sitemap 模块及进行优化
- 更新 缓存及数据库模块、在核心节点增加告警服务
- 更新 SEO ping 服务
- 增加 API 文档
- 增加 logo 资源
- 增加 模型构造器、Provider 构造器、模型注入器
- 增加 Google 证书服务
增加 compodoc 文档构建器,但不实用- 优化 各模型搜索业务完善为大小写通配,并 trim 处理
- 优化 验证模型
- 优化 鉴权业务
- 优化 helper 模块
- 优化 设置表
- 去除 对 nestjs-typegoose 模块的依赖
- 废弃 枚举常量接口
- Update nestjs to v6.0
- 修正邮件服务文案错误
- 修复更新密码覆盖问题
- 修正缓存请求服务的问题
- 修正配置读取类型错误问题
- 升级 Wallpaper 业务
- 使用 Nest 进行重构
- 增加 Bilibili Vlog 业务模块
- opeitime logic
- add constants api
- 增加统计数据接口
- 优化密码更新机制
- 升级完善全站缓存机制
- 增加时间定点任务库
- 优化编码风格
- 完善项目信息
- 完善 Js Doc 信息
- Music 控制器增加 limit 参数
- Github 控制器优化数据
- 增加 bing-wallpaper API 服务
- 使用更友好的 consola 日志模块
- 为控制器和 Model 抽象出单独的状态常量
- 文章增加原创、转载字段
- 优化评论系统的业务
- submitSpam 与移至黑名单功能映射
- 移黑功能,会自动将 SPAM 信息提交至 akismet,同时添加至系统黑名单
- 升级 akismet-api 库,增加两项功能
- 升级 geoip-lite 库
- 升级 helmet 库
- 升级 jsonwebtoken 库,根据版本调整逻辑
- 升级 marked
- 升级 mongoose 库
- 升级 nodemailer 库,更新逻辑,去除 nodemailer-smtp-transport 库
- 升级 redis 库
- 升级 request 库
- 升级 sitemap 库,优化部分逻辑
- 升级 yargs 库
- fork mongoose-paginate 修复旧方法警告问题
- 更新密码加密机制
- 增加检查 Token 有效性接口
- 重构了播放器 API
- 修复了评论数 bug
- 驱动搜索引擎 ping 接口 文章发布后自动 ping 给搜索引擎 xml
- 增加评论功能+黑名单,评论可自动校验 spam,及黑名单 (ip、邮箱、关键字的校验)
- 使用 helmet + 手动优化,优化程序安全性
- 优化 mongoose 实例
- 优化数据表结构
- 更新数据时时间更新
- 修复时间检索失效
- 增加 idle-gc 内存回收
- 增加百度搜索引擎的实时提交
- 更新模块化别名
- 更新 README.md
- 加入网站地图接口
- 网站地图由于缓存或者 primise 不能及时更新
- 网站地图的数据构成中文章需要筛选公开一发布的文章
- 对接百度统计开放平台 api
- 密码存储需要使用 md5 加密机制
- token... 等 config 信息使用 node 命令参数在 shell 中配置覆盖
- lean 和 翻页插件一起使用,返回的 id 字段是 _id bug
- 整理统一 result 的返回结构
- 围观后计数功能
- 多说转发热门文章接口
- 相关文章接口
- 使用 Redis 缓存标签、播放器、Github 数据