ServiceNow SDK 4.0.0
SDK 4.0.0
breaking++++++++~~~~~~
Changes
- !Custom properties have been removed in this version. In versions 3.0 and earlier, you could specify custom properties not included in the type definition on any API. This was helpful for setting custom fields on out-of-box table definitions. However, this feature has been removed in 4.0 to prevent issues caused by allowing arbitrary properties in the API type. This feature would cause AI hallucinations during code generation due to lack of strict type checking on the arbitrary fields that were allowed. We are planning to bring this back soon (4.1+), so if you rely on this in your application please wait or alternatively use the Record API instead if that's a possibility.other / breaking
- Added clean commandchanged
- Added pack commandchanged
- Added download commandchanged
- List API deprecates $id property as it is a coalescing table and uses combination of name, view, sys_domain, element, relationship, and parent properties. The property will not produce build errors but be marked as deprecated.changed
- Role API deprecates $id property as it is a coalescing table and uses the name property to generate its key. The property will not produce build errors but will be marked as deprecated.changed
- ClientScript API will no longer produce script fields with tagged template literalsscript tag during generation by default. Syntax highlighting for these tags were removed back in 3.0 in favor of Now.include functionality. The tags will not produce build errors, and they do not alter functionality.changed
- ScriptInclude (sys_script_include)added
- UiPage (sys_ui_page)added
- UiAction (sys_ui_action)added
- ScriptAction (sysevent_script_action)added
- ServicePortal elementsadded
19 more lines
- SpWidget (sp_widget)added
- SPWidgetDependency (sp_dependency)added
- SpAngularProvider (sp_angular_provider)added
- ⚛️ Front-End app support with front end frameworks like React, Vue, Svelte, SolidJS, and others!other
- ⚡️ New Fluent APIs to level up your applications developmentother
- 🛠️ A rock-solid foundation for even bigger things coming soonother
- React Sample:other
- Svelte Sample:other
- Vue Sample:other
- SolidJS Sample:other
- Only hash routing is currently supported by UI Pages.other
- Maximum file size of assets is limited to the com.glide.attachment.max_size system propertyother
- Preloading content linked from HTML isn't supported (rel="preload")other
- Relative style sheets linked from HTML aren't supported (rel="stylesheet"). Import your style sheets into code instead (import "path/to/style-sheet")other
- Relative @import in CSS isn't supportedother
- CSS modules aren't supportedother
- Server-side rendering and React server components aren't supportedother
- Github Discussionsother
- ServiceNow Forumother
31 lines8 added6 changed17 othertyped from the source notes