Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/variables/cpp-sdk-versions.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sdk=3.10.1
redis_source=2.1.19
sdk=3.13.0
redis_source=2.4.0
Comment thread
kinyoklion marked this conversation as resolved.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ["5.1", "5.2", "5.3", "luajit-2.0.5"]
version: ["5.1", "5.2", "5.3", "luajit-2.1"]
package: ${{ fromJSON(needs.rockspecs.outputs.matrix) }}

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/install-lua-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
- '5.1'
- '5.2'
- '5.3'
- 'luajit-2.0.5'
- 'luajit-2.1'
default: '5.3'
cpp-sdk-version:
description: "Version of the C++ Server-side SDK."
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LaunchDarkly overview
Supported Lua versions
-----------

This version of the LaunchDarkly SDK is known to be compatible with the Lua 5.1-5.3 interpreter, and LuaJIT 2.0.5.
This version of the LaunchDarkly SDK is known to be compatible with the Lua 5.1-5.3 interpreter, and LuaJIT 2.1.

Supported C++ server-side SDK versions
-----------
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM debian:bookworm
ARG VERSION=2.1.3
# {{ x-release-please-end }}

ARG CPP_SDK_VERSION=3.10.1
ARG CPP_SDK_VERSION=3.13.0

# For unknown reasons, it appears that boost.json and boost.url aren't included in the
# libboost-all package.
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-haproxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ubuntu:22.04
ARG VERSION=2.1.3
# {{ x-release-please-end }}

ARG CPP_SDK_VERSION=3.10.1
ARG CPP_SDK_VERSION=3.13.0

RUN apt-get update && apt-get install -y \
curl luarocks lua5.3 lua5.3-dev \
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM openresty/openresty:1.21.4.1-0-jammy
ARG VERSION=2.1.3
# {{ x-release-please-end }}

ARG CPP_SDK_VERSION=3.10.1
ARG CPP_SDK_VERSION=3.13.0

RUN apt-get update && apt-get install -y \
git netbase curl libssl-dev apt-transport-https ca-certificates \
Expand Down
18 changes: 0 additions & 18 deletions launchdarkly-server-sdk-redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,6 @@ static const struct luaL_Reg launchdarkly_functions[] = {
{ NULL, NULL}
};

#if !defined LUA_VERSION_NUM || LUA_VERSION_NUM==501
/*
** Adapted from Lua 5.2.0
*/
static void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) {
luaL_checkstack(L, nup+1, "too many upvalues");
for (; l->name != NULL; l++) { /* fill the table with given functions */
int i;
lua_pushstring(L, l->name);
for (i = 0; i < nup; i++) /* copy upvalues to the top */
lua_pushvalue(L, -(nup+1));
lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */
lua_settable(L, -(nup + 3));
}
lua_pop(L, nup); /* remove upvalues */
}
#endif

int
luaopen_launchdarkly_server_sdk_redis(lua_State *const l)
{
Expand Down
Loading