SDK 4.4.0
@servicenow/sdk — Release Notes
Version: 4.4.0
Availability: npm — https://www.npmjs.com/package/@servicenow/sdk
🚀 Overview
Version 4.4.0 fixes some bugs and adds a new dev server capability for front end UI building with the SDK, and some internal support for future version of Build Agent and Australia release for global app support!
New Features
Front-End Dev Server
A highly requested feature — the dev server drastically reduces build cycles and enables rapid UI development without needing to deploy to an instance. Requests are proxied to the ServiceNow instance defined in your auth credentials.
Note: Dev server scripts are included in new projects only. A future release will add a command to install it into existing projects.
Getting started:
- Run
sdk initusing thereactorvuetemplate - Start the server with
npm run dev
Requirements:
@servicenow/isomorphic-rollup>=1.2.14@servicenow/sdk>=4.4.0now.dev.mjspresent in your project (generated duringinit)
ServiceCatalog & Flows
Add support between Flows and ServiceCatalog in Fluent for interacting with catalog variables and actions in Flows, and for Catalog Items to trigger Flows!
- Support for Flow Service Catalog Item triggers
- Support for
getCatalogVariablesaction in Flows - Support for `createCatalogTask' action in Flows
- Support for
submitCatalogItemRequestaction in Flows
Changes
- Fix invalid transformation for
durationfield forSla - Fix
requestMethodonCatalogItemandCatalogItemProducernot serializing properly - Stable UX asset IDs (will see keys.ts location changes)
- Add
protectionPolicytoACL - Add
tableDefaultLanguagetonow.config.jsonto support setting language on table column labels - Fix APIs that were not restricting arbitrary properties!
NOTE: Many APIs were not strictly enforcing that extra properties could not be defined on the API, which caused some usage errors around mispelling properties or thinking they can add a property and it will be added to the build output, and should be fixed or removed.
For example this would not produce an error:
Property({
$id: Now.ID['property-1'],
name: 'x_foo.myproperty',
randomProperty: true
})This will now produce an error diagnostic that randomProperty does not exist as an option on Property! This may introduce a build error for existing projects when upgrading to 4.4.0, but these properties were being ignored during build causing false positives.