Olympe Code 7.5.0
Release 7.5.0
Olympe Code 7.5.0, released in June 2020.
Requirements
- requires Orchestrator version 4.12.0 or higher.
Breaking Changes
olympe.utils.UrlParts
was refactored to follow RFC 3986. This implies that :- Property
protocol
was renamedscheme
. - Property
anchor
was renamedfragment
. - Trailing
?
was removed from propertyquery
ofolympe.utils.UrlParts
.
- Property
olympe.utils.parseUrl
now formally returns aolympe.utils.UrlParts
typedef.
- FileUpload :
- Remove setReadAsText()
- Always read as ArrayBuffer (use BinaryConverter.binaryToString() to get back text content)
- FileUploadItem => Content is an ArrayBuffer
olympe.utils.Base64Converter
replaced byolympe.utils.BinaryConverter
olympe.utils.Base64Converter.Encoding
removedolympe.utils.Svc.BASE64
depracted, replaced byolympe.utils.Svc.BINARY_CONVERTER
dataUrlToBlob
andblobToDataUrl
removed from Base64Converter- Check the new
olympe.utils.BinaryConverter
class to see methods that replace those onBase64Converter
. - singleton getter :
olympe.utils.getBinaryConverter()
(if really required) - helper
olympe.utils.stringToBlob
removed - HTTPRequests have a new response type : ArrayBuffer => Makes possible to create typed blobs
- Already deprecated olympe.net.HttpRequest.ResponseType removed (use olympe.net.Http.ResponseType instead)
- Helpers to create files :
createFile
takes the binary contentcreateFileFromURL
take the url (object or external) => should be essentially used for files that refer to an external url.
--> DC Files should no longer be created from a data: URL! You have first to convert it to binary if necessary !!
- DC Files :
- New files always encoded as binary content.
getContentAsBinary
to get the content as ArrayBuffergetContentAsString
to get text file content => decoded as UTF8 from ArrayBuffer so should be used ONLY for text files (json, js, etc).getContentUrl
to get the content as a DataURL: the encoding must be provided. It returns an external (e.g. http://olympe.io/) URL when the file is not managed by Olympe.saveAs(name)
to save the current file to the disk
- SC.ImageFile :
- getContentUrlFlow to get a dataflow of the dataurl of this image content (used for UI components)
HistoryState
has become a plain class (formerly atypedef
). To instantiate aHistoryState
object, one must now invoke the constructor or the provided static method. To access the properties ofHistoryState
instance, one must now use the dedicated methods.
- Must use orchestrator 4.12.0 minimum version.
Bug fixes & Minor improvements
- OF-1214: Replace all usages of "entry.getTag()" and add the replacement to the good practices of CODE.
- OF-1225: Synchronise offline files when re-connecting
- OF-1245: Setting the same complex prop twice deletes it.
- OF-1254: Valuedef with default value
- OF-1268: Basic authentication doesn't work with HTTP bricks
- OF-1282: Implement a binary file converter app to complement the 1.6.0 --> 1.7.0 migration
- OF-1260: File API improvements
- OF-1253: Add a method to replace the current state in history manager
- OF-1246: Cannot register multiple graphDef callbacks
- OF-1231: Remove ACKs for burst transaction