compat: make compat a top level module
Now it is accessible using `require('compat')` instead of `require('tarantool').compat`. It follows our usual way to expose built-in modules. It was not done initially due to doubts about projects, which have its own `myproject/compat.lua` and have modified `package.loaded` to obtain the project's compat as `require('compat')`. It is not recommended and should be avoided. Project's modules should be imported using `require('myproject.<...>')`. Otherwise it may clash with a future built-in module or any external one. Follows up #7000 NO_DOC=will be added to https://github.com/tarantool/doc/issues/3259
Showing
- changelogs/unreleased/gh-3012-yaml-prettier-multiline-output.md 3 additions, 3 deletions...logs/unreleased/gh-3012-yaml-prettier-multiline-output.md
- changelogs/unreleased/gh-6200-lua_cjson-encode-escapes-slash.md 2 additions, 2 deletions...logs/unreleased/gh-6200-lua_cjson-encode-escapes-slash.md
- changelogs/unreleased/gh-7000-compat-module.md 6 additions, 7 deletionschangelogs/unreleased/gh-7000-compat-module.md
- changelogs/unreleased/gh-7746-fiber-channel-graceful-close.md 3 additions, 2 deletions...gelogs/unreleased/gh-7746-fiber-channel-graceful-close.md
- src/box/lua/load_cfg.lua 1 addition, 1 deletionsrc/box/lua/load_cfg.lua
- src/lua/compat.lua 3 additions, 3 deletionssrc/lua/compat.lua
- src/lua/init.c 1 addition, 1 deletionsrc/lua/init.c
- src/lua/init.lua 0 additions, 2 deletionssrc/lua/init.lua
- test/app-luatest/gh_3012_yaml_prettier_multiline_output_test.lua 1 addition, 1 deletion...p-luatest/gh_3012_yaml_prettier_multiline_output_test.lua
- test/app-luatest/gh_6200_lua_cjson_escapes_slash_test.lua 4 additions, 4 deletionstest/app-luatest/gh_6200_lua_cjson_escapes_slash_test.lua
- test/app-luatest/gh_7000_compat_module_test.lua 1 addition, 1 deletiontest/app-luatest/gh_7000_compat_module_test.lua
- test/app-luatest/gh_7746_fiber_channel_close_test.lua 3 additions, 3 deletionstest/app-luatest/gh_7746_fiber_channel_close_test.lua
Loading
Please register or sign in to comment