Fluent-compiler

Latest version: v1.1

Safety actively analyzes 619516 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.1

--------------------------------

* Fixed crasher with variable re-use when looking up the same argument more than
once. Thanks ggindinson for bug report and PR.
* Dropped Python 3.6 support

1.0

--------------------------------

* Tested against latest Python 3.11, and 3.12 alpha

0.4

--------------------------------

* Dropped support for Python 2.7 and Python < 3.6
* Lots of code style cleanups using black etc.
* Compiler actually respects documented ``use_isolating`` attribute of escapers

0.3

--------------------------------

* Fixed test suite on Python 3.8
* Performance improvements
* Made ``fluent_number`` obey format specifiers for currencies

0.2

--------------------------------
* New :class:`fluent_compiler.bundle.FluentBundle` API - **backwards
incompatible**. In this release, we are diverging from the ``fluent.runtime``
0.1 interface to make something that better suits both our implementation and
our target audience to come up with better APIs. The changes are especially
driven by the needs of the ``django-ftl`` package, without being tied to
Django in any way.

It should be relatively straightforward to convert. Instead of doing::

bundle = FluentBundle(locale_list, options)
bundle.add_messages(...)

You now do::

bundle = FluentBundle.from_string(locale, string)

or::

bundle = FluentBundle.from_files(locale, ['file1.ftl', 'file2.ftl'])

* New :func:`fluent_compiler.compiler.compile_messages` function which is
slightly lower level than ``FluentBundle``.

0.1.1

----------------------------------
* Small packaging improvements

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.