Skip to content

Commit f12aaed

Browse files
authored
chore(*) release 4.0.0 (#156)
### Summary Rewrite of the Session library. Thanks @samugi!
1 parent e6bf263 commit f12aaed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+19740
-3096
lines changed

Diff for: .busted

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
return {
2+
default = {
3+
lua = "resty --shdict 'sessions 1m' --main-conf 'thread_pool default threads=32 max_queue=65536;'",
4+
verbose = true,
5+
output = "gtest",
6+
}
7+
}

Diff for: .github/workflows/unit_tests.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: unit_tests
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
luaVersion: ["luajit-openresty"]
10+
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup environment
16+
run: docker build dev/ -t resty-session
17+
18+
- name: Run tests
19+
run: docker run -v $PWD:/test -w /test resty-session bash -c "luarocks make && busted --exclude-tags=noci"

Diff for: .luacheckrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
std = "ngx_lua"
2-
2+
redefined = false
3+
max_line_length = false
4+
files["lib/resty/session/file.lua"] = { ignore = {"143"}}

Diff for: Changes.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to `lua-resty-session` will be documented in this file.
44

5+
## [4.0.0] - 2023-02-01
6+
- Full rewrite of the library, and is not backwards compatible. Refer new
7+
documentation on this new library.
8+
9+
510
## [3.10] - 2022-01-14
611
### Fixed
712
- 3.9 introduced an issue where calling session:regenerate with flush=true,

Diff for: LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014 – 2022, Aapo Talvensaari
1+
Copyright (c) 2014 – 2023 Aapo Talvensaari, 2022 – 2023 Samuele Illuminati
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

Diff for: Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
.PHONY: lint
1+
.PHONY: lint test docs
22

33
lint:
44
@luacheck -q ./lib
5+
6+
test:
7+
busted
8+
9+
docs:
10+
ldoc .

0 commit comments

Comments
 (0)