mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
8.9 KiB
8.9 KiB
Changelog
0.7.0
Added
- Autocomplete to CLI #219.
- New mouse functions -
MOUSE(x, y)
andSCROLL(x, y)
#237. WAIT_NO_ELEMENT
,WAIT_NO_CLASS
andWAIT_NO_CLASS_ALL
functions #249.- Computed
HTMLElement.style
property #255. ATTR_GET
,ATTR_SET
,ATTR_REMOVE
,STYLE_GET
,STYLE_SET
andSTYLE_REMOVE
functions #255.WAIT_STYLE
,WAIT_NO_STYLE
,WAIT_STYLE_ALL
andWAIT_NO_STYLE_ALL
functions #256.- Cookies support. Now a document can be loaded with preset cookies. Also, HTMLDocument has
.cookies
property. In order to manipulate with cookies,COOKIE_DEL
,COOKIE_SET
ANDCOOKIE_GET
functions were added #242.
LET doc = DOCUMENT(url, {
driver: "cdp",
cookies: [{
name: "x-e2e",
value: "test"
}, {
name: "x-e2e-2",
value: "test2"
}]
})
Changed
Fixed
- Click events are not cancellable #222.
- Name collision #223.
- Invalid return in FQL Compiler constructor #227.
- Incorrect string length computation #238.
- Access to HTML object properties via dot notation #239.
- Graceful process termination #240.
- Browser launcher for macOS #246.
Breaking changes
- New runtime type system #232.
- Moved and renamed
collections.IterableCollection
andcollections.CollectionIterator
interfaces. Now they are incore
package and calledIterable
andIterator
1af8b37. - Renamed
collections.Collection
interface tocollections.Measurable
1af8b37. - Moved html interfaces from
runtime/values
package intodrivers
package #234. - Changed drivers initialization. Replaced old
drivers.WithDynamic
anddrivers.WithStatic
methods with a newdrivers.WithContext
method with optional parameterdrivers.AsDefault()
#234. - New document load params #234.
LET doc = DOCUMENT(url, {
driver: "cdp"
})
0.6.0
Added
- Added support for
context.Done()
to interrupt an execution #201. - Added support for custom HTML drivers #209.
- Added support for dot notation access and assignments for custom types #214
- Added
ELEMENT_EXISTS(doc, selector) -> Boolean
function #210.
LET exists = ELEMENT_EXISTS(doc, ".nav")
- Added
PageLoadParams
toDOCUMENT
function #214.
LET doc = DOCUMENT("https://www.google.com/", {
dynamic: true,
timeout: 10000
})
Fixed
Breaking change
- (Embedded) Removed builtin drivers initialization in Program #198. The initialization must be done via context manually.
0.5.2
Fixed
- Does not close browser tab when fails to load a page #193.
HTMLElement.value
does not return actual value #195- Compiles a query with duplicate variable in FOR statement #196
- Default CDP address #197.
0.5.1
Fixed
- Unable to change a page load timeout #186.
RETURN doc
returns an empty string #187.- Unable to pass an HTML Node without a selector to
INNER_TEXT
andINNER_HTML
#187. doc.innerText
returns an error #187.- Panics when
WAIT_CLASS
does not receive all required arguments #192.
0.5.0
Added
FMT
function #151.- DateTime functions #152, #153, #154, #156, #157, #165, #175, #182.
PAGINATION
function #173.SCROLL_TOP
,SCROLL_BOTTOM
andSCROLL_ELEMENT
functions #174.HOVER
function #178.- Panic recovery mechanism #158.
Fixed
- Unable to define variables and make function calls before FILTER, SORT and etc statements #148.
- Unable to use params in LIMIT clause #173.
RIGHT
should return substr counting from right rather than left #164.INNER_HTML
returns outer HTML instead for dynamic elements #170.INNER_TEXT
returns HTML instead from dynamic elements #170.
Breaking change:
- Name collision between
math
andutils
packages in standard library. RenamedLOG
toPRINT
#162.
0.4.0
Added
Fixed
- Unable to use string literals as object properties commit
0.3.0
Added
FROM_BASE64
function commit- Support for multi line strings commit
DOWNLOAD
function commit- Binary expressions commit
Fixed
KEEP
function does not perform deep cloning commit- WaitForNavigation callback can get called more than once commit
- Concurrent map iteration and map write commit
Breaking changes
- Renamed
.innerHtml
to.innerHTML
commit