Skip to content

Releases: pilinux/gorest

v1.6.7

18 Feb 16:04
b563dc8
Compare
Choose a tag to compare

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

07 Jan 11:08
60541c3
Compare
Choose a tag to compare

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

04 Dec 09:26
7a5df15
Compare
Choose a tag to compare

💎 go bumped to v1.19
🔑 golang-jwt/jwt bumped to v4.4.3
📚 gorm.io/gorm bumped to v1.24.2
📒 getsentry/sentry-go sdk bumped to v0.15.0
🎨 flosch/pongo2 bumped to v6.0.0

v1.6.4

18 Nov 11:30
94e134f
Compare
Choose a tag to compare

gorm updated to 1.24.1

⚡ gorm mysql driver updated to 1.4.4

⚡ gorm postgres driver updated to 1.4.5

⚡ gorm sqlite driver updated to 1.4.3

⚡ mongodb mongo driver updated to 1.11.0

Qmgo updated to 1.1.4

⚡ mrz1836 postmark driver updated to 1.3.0

v1.6.3

30 Sep 03:11
6d5b769
Compare
Choose a tag to compare

🧱 CORS updated for OPTIONS method - used by browser-based HTTP clients

v1.6.2

28 Sep 13:01
23ec835
Compare
Choose a tag to compare

🕵️ tuned CORS implementation

v1.6.1

27 Sep 08:04
a3788e6
Compare
Choose a tag to compare

🏆 cleanup of the codebase
🎁 example contains guidelines on how
gorest can be used to build RESTful API, but
developers are free to innovate and implement
their methods

v1.6.0-rc.1

03 Sep 18:25
1b57f62
Compare
Choose a tag to compare

⚡ 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

23 Jul 21:25
cd1cb8c
Compare
Choose a tag to compare

Full Changelog: v1.4.5...v1.5.1

v1.4.5

18 Jul 07:55
19f1388
Compare
Choose a tag to compare

gin updated to 1.8.1

gorm updated to 1.23.8

⚡ gorm mysql driver updated to 1.3.5

⚡ gorm sqlite driver updated to 1.3.6

⚡ mongodb mongo driver updated to 1.10.0

Qmgo updated to 1.1.1

radix driver updated to 4.1.0