Releases: pilinux/gorest
v1.6.7
direct dependencies
⚡ github.com/qiniu/qmgo from v1.1.4
to v1.1.5
⚡ github.com/mediocregopher/radix/v4 from v4.1.1
to v4.1.2
⚡ gorm.io/gorm from v1.24.3
to v1.24.5
⚡ github.com/joho/godotenv from v1.4.0
to v1.5.1
⚡ gorm.io/driver/mysql from v1.4.5
to v1.4.7
⚡ gorm.io/driver/postgres from v1.4.6
to v1.4.8
⚡ go.mongodb.org/mongo-driver from v1.11.1
to v1.11.2
indirect dependencies
⚡ github.com/jackc/pgx/v5 from v5.2.0
to v5.3.0
⚡ github.com/lib/pq from v1.10.2
to v1.10.4
⚡ github.com/youmark/pkcs8 set to v0.0.0-20181117223130-1be2e3e5546d
⚡ golang.org/x/crypto from v0.4.0
to v0.6.0
⚡ golang.org/x/net from v0.4.0
to v0.7.0
⚡ golang.org/x/sync from v0.0.0-20220923202941-7f9b1623fab7
to v0.1.0
⚡ golang.org/x/sys from v0.3.0
to v0.5.0
⚡ golang.org/x/text from v0.5.0
to v0.7.0
security fix
CWE-400
Details: https://cwe.mitre.org/data/definitions/400.html
test files
added test files for middleware
package
v1.6.6
Dependency update
⚡ gin
bumped to v1.8.2
⚡ gorm
bumped to 1.24.3
⚡ gorm mysql
driver bumped to 1.4.5
⚡ gorm postgres
driver bumped to 1.4.6
⚡ gorm sqlite
driver bumped to 1.4.4
⚡ mongodb mongo
driver bumped to 1.11.1
Fix
⚡ after activating 2-FA for an account, JSON was sending wrong 2-FA status
⚡ abort when sentry NewHook
fails
Refactor
⚡ perform all checks in TwoFA
middleware
⚡ handle and return the error from config
Minor changes
Please modify your existing code to load all environment variables properly
import (
"fmt"
gconfig "github.com/pilinux/gorest/config"
)
func main() {
// set configs
err := gconfig.Config()
if err != nil {
fmt.Println(err)
return
}
// read configs
configure := gconfig.GetConfig()
... ...
}
New feature
If you need to add additional environment variables for your application,
⚡ add them to the .env file
⚡ create a separate internal package
⚡ implement your own logic
⚡ and use gconfig.Env()
to load your custom environment variables
You can study config
package to get a better understanding of the process.
v1.6.5
v1.6.4
v1.6.3
v1.6.2
v1.6.1
v1.6.0-rc.1
⚡ optimized database configuration files
⚡ optimized web application firewall
⚡ JSON protection from hijacking
⚡ better handling of JWT
⚡ two-factor authentication
⚡ email verification
⚡ password recovery
⚡ password update
v1.5.1
Full Changelog: v1.4.5...v1.5.1