v3.0.0-beta-2059
This release aims to unify and clarify public APIs and hiding services that shouldn't be needed for normal usage. Services can always be exposed again if it seems necessary. If you find some API missing that you need, please create a PR with suggested API change and a test case against Jint.Tests.PublicInterface
which will ensure that the API won't be broken that easily.
- Rename
FunctionInstance
->Function
- Rename
BindFunctionInstance
->BindFunction
- Rename
ClrFunctionInstance
->ClrFunction
- Rename
GetterFunctionInstance
->GetterFunction
and madeinternal
- Rename
IPrimitiveInstance
->IJsPrimitive
- Rename
ScriptFunctionInstance
->ScriptFunction
- Rename
SetterFunctionInstance
->SetterFunction
and madeinternal
- Rename
Engine.ClrTypeConverter
toEngine.TypeConverter
- Rename
Engine.DebugHandler
toEngine.Debugger
- Move
Engine.ResetCallStack
toEngine.Advanced
- Move constraint related methods to
Engine.Constraints
- Move module related methods to
Engine.Modules
and shorten method names - Move
Engine.RegisterPromise
toEngine.Advanced
- Make
ObjectInstance.IsLooselyEqual()
protected - Hide
JsonInstance
- Hide
ObjectInstance.CanPut()
- Hide
ObjectInstance.DefinePropertyOrThrow()
- Hide
ObjectInstance.DeletePropertyOrThrow()
- Hide
ObjectInstance.IsArray()
and addJsValueExtensions.IsArray()
- Hide
ObjectInstance.SetPrototypeOf()
and allow set viaObjectInstance.Prototype
property set - Hide
ObjectInstance.IsArrayLike
- Hide
ObjectInstance.Length
and only exposeJsArray.Length
andJsTypedArray.Length
properties - Remove
ObjectInstance.Invoke
- Remove
Engine.Realm
, exposeEngine.Intrinsics
andEngine.Global
directly
What's Changed
- Debug StepInto stops at beginning of arrow function by @tomatosalat0 in #1715
- Remove Record suffix from types by @lahma in #1716
- Move CreateDeclarativeEnvironment and FindConstraint to Engine.Advanced by @lahma in #1717
- Remove some Instance suffixes by @lahma in #1718
- Hide, rename and move some methods by @lahma in #1719
- Cleanup ObjectInstance public API by @lahma in #1720
- Rename FunctionInstance to Function by @lahma in #1721
- Remove Engine.Realm, expose Engine.Intrinsics and Engine.Global directly by @lahma in #1722
- Hide GlobalObject public methods by @lahma in #1723
Full Changelog: v3.0.0-beta-2058...v3.0.0-beta-2059