Hello, I'm glad to announce a new release of NGINX JavaScript module (njs).
Notable new features: - "zlib" module: : const zlib = require('zlib'); : zlib.deflateRawSync('αβγ').toString('base64') : /* "O7fx3KZzmwE=" */ : : zlib.inflateRawSync(Buffer.from('O7fx3KZzmwE=', 'base64')).toString() : /* "αβγ" */ Learn more about njs: - Overview and introduction: https://nginx.org/en/docs/njs/ - NGINX JavaScript in Your Web Server Configuration: https://youtu.be/Jc_L6UffFOs - Extending NGINX with Custom Code: https://youtu.be/0CVhq4AUU7M - Using node modules with njs: https://nginx.org/en/docs/njs/node_modules.html - Writing njs code using TypeScript definition files: https://nginx.org/en/docs/njs/typescript.html Feel free to try it and give us feedback on: - Github: https://github.com/nginx/njs/issues - Mailing list: https://mailman.nginx.org/mailman/listinfo/nginx-devel Additional examples and howtos can be found here: - Github: https://github.com/nginx/njs-examples Changes with njs 0.7.12 10 Apr 2023 nginx modules: *) Bugfix: fixed Headers() constructor in Fetch API. Core: *) Feature: added Hash.copy() method in "crypto" module. *) Feature: added "zlib" module. *) Improvement: added support for export {name as default} statement. *) Bugfix: fixed Number constructor according to the spec. _______________________________________________ nginx mailing list nginx@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx