Skip to content

v3.0.0-beta-2059

Compare
Choose a tag to compare
@lahma lahma released this 05 Jan 12:10
· 136 commits to main since this release
8d2d986

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 made internal
  • Rename IPrimitiveInstance -> IJsPrimitive
  • Rename ScriptFunctionInstance -> ScriptFunction
  • Rename SetterFunctionInstance -> SetterFunction and made internal
  • Rename Engine.ClrTypeConverter to Engine.TypeConverter
  • Rename Engine.DebugHandler to Engine.Debugger
  • Move Engine.ResetCallStack to Engine.Advanced
  • Move constraint related methods to Engine.Constraints
  • Move module related methods to Engine.Modules and shorten method names
  • Move Engine.RegisterPromise to Engine.Advanced
  • Make ObjectInstance.IsLooselyEqual() protected
  • Hide JsonInstance
  • Hide ObjectInstance.CanPut()
  • Hide ObjectInstance.DefinePropertyOrThrow()
  • Hide ObjectInstance.DeletePropertyOrThrow()
  • Hide ObjectInstance.IsArray() and add JsValueExtensions.IsArray()
  • Hide ObjectInstance.SetPrototypeOf() and allow set via ObjectInstance.Prototype property set
  • Hide ObjectInstance.IsArrayLike
  • Hide ObjectInstance.Length and only expose JsArray.Length and JsTypedArray.Length properties
  • Remove ObjectInstance.Invoke
  • Remove Engine.Realm, expose Engine.Intrinsics and Engine.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