Migration Guide : Migrating from Version 12.0.0 : Instantiation of readers and writers for NeoCSV and NeoJSON has changed
Instantiation of readers and writers for NeoCSV and NeoJSON has changed
In VAST 12.0.0 and earlier, it was possible to instantiate a NeoJSONReader / NeoCSVReader or NeoJSONWriter / NeoCSVWriter directly using #new. As of VAST 12.0.1, the recommended way to initiate a reader or writer is using the class-side #on: method, and the #new has been made private.
Reason for change
The method #new provided compatibility with its canonical version, where #initialize is sent to the new instance by default. However, VAST Platform doesn't have that by default.
Action required
Instead of
NeoJSONReader class>>#new
NeoCSVReader class>>#new
NeoJSONWriter class>>#new
NeoCSVWriter class>>#new
use
NeoJSONReader class>>#on:
NeoCSVReader class>>#on:
NeoJSONWriter class>>#on:
NeoCSVWriter class>>#on:
for instance creation of NeoCSV / NeoJSON reader or writer.
Last modified date: 04/20/2023