Rhai v1.0.0 Release Notes
-
The official version
1.0
.🚚 Almost the same version as
0.20.3
but with deprecated API's removed.🐛 Bug fixes
- 🛠 Fixed infinite loop in certain script optimizations.
- 🏗 Building for
no-std
no longer requires patchingsmartstring
. - 📜 Parsing a lone
return
orthrow
without a semicolon at the end of a block no longer raises an error.
💥 Breaking changes
- 🚚 All deprecated API's (e.g. the
RegisterFn
andRegisterResultFn
traits) are removed. Module::set_id
is split intoModule::set_id
andModule::clear_id
pair.begin
,end
,each
,then
,unless
are no longer reserved keywords.
✨ Enhancements
- New methods
is_odd
,is_even
for integers, andis_zero
for all numbers. From<BTreeSet>
andFrom<HashSet>
are added forDynamic
, which create object maps with()
values.