Skip to content

lua-resty-mongol 1.0.0

Latest

Choose a tag to compare

@Laobei2012 Laobei2012 released this 28 Oct 19:07
· 69 commits to master since this release
173b314

lua-resty-mongol 1.0.0

The consolidated modernization release for OpenResty, supporting MongoDB 6.0, 7.0, 8.0 and 9.0. All implementation phases ship together as this major release.

Highlights

  • Modern OP_MSG commands for CRUD, server cursors, aggregation and GridFS.
  • SCRAM-SHA-256/SHA-1 authentication, TLS and configurable connection pooling.
  • MongoDB connection strings, replica-set primary selection, explicit sessions and transactions.
  • BSON type improvements, ordered documents, JSON helpers and command monitoring.
  • Updated API documentation and LuaRocks/OPM packages containing all 17 modules.

Migration Required

This release contains breaking BSON and API behavior changes. In particular, arrays use 1-based Lua indexes; whole-number encoding selects int32/int64; large int64 values remain cdata; legacy MONGODB-CR authentication is removed; and connection/protocol errors return nil, err.

Read the migration guide and complete changelog before upgrading.

Installation And Assets

OpenResty with LuaJIT and its bundled resty libraries is required; standalone Lua is not a supported runtime.

Use make install PREFIX=/usr/local/openresty from the tagged source, or install the attached .src.rock/.all.rock with LuaRocks configured for OpenResty's LuaJIT. OPM package tarball and rockspec are also attached. Verify downloads against SHA256SUMS.

Registry Status

  • LuaRocks 1.0.0-1: published with source and platform-independent rocks. A fresh registry install passed all 17 module and documentation checks under OpenResty.
  • OPM: upload task 1699 was accepted, but server processing remains Pending; registry installation is not yet available.

With LuaRocks configured for OpenResty's LuaJIT:

luarocks install lua-resty-mongol 1.0.0-1

Validation

  • Independent review of implementation phases, packaging fixes and release metadata.
  • CI covers MongoDB 6.0, 7.0, 8.0 and 9.0, authentication, replica sets, transactions, TLS and lint.
  • LuaRocks and OPM artifacts contain all 17 matching modules, load successfully under OpenResty, and retain current documentation and license notices.