- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
10-18-2024 12:00 PM - edited 10-22-2024 02:44 PM
We are excited to announce that release 2.1.1 of the ServiceNow SDK is available on npm!
With this release, we are releasing some new features, squashing bugs, and increasing performance! Please check out the release notes below, and let us know on the forum if you have any issues. We have added support for OAuth authentication info your ServiceNow instance, for developers that cannot use basic auth and must use their external identity providers through SSO! You can find more information on OAuth support and how to configure it here in this article.
We recommend you use VSCode to develop your SDK projects, so be sure to also install ServiceNow Fluent Language extension! This extension works with SDK projects and now.ts
files to enable additional syntax and diagnostic checks for your projects!
Changes:
- Added support for authenticating with OAuth 2.0 to your ServiceNow instance!
- Fix
choices
androles
onProperty
fluent type during fetch - Added support for
sys_documentation
toTable
fluent type to support language definitions - Support
reference_cascade_rule
onReferenceColumn
- Add bi-directional sync support for
CrossScopePrivilege
fluent type - Improved performance of fetch and build system
- Add errors to build for duplicate IDs
- Remove need to have sys_app xml file in metadata folder
- Add JSDoc documentation to all fluent types
- Add new
@fluent-ignore
support for suppressing fluent or typescript errors. This works similar tots-ignore
by placing it in a comment above the offending lines you wish to suppress errors for. - Add support for
html
tagged template literals. Like thescript
tag you can apply this to your html columns to get syntax highlighting in the editor when using our VSCode extension. - Add support for importing from json files.
import foo from './foo.json' Record({ data: { name: JSON.stringify(foo), }, })
- Fixed
RestAPI
issues with update and delete on instance not syncing to code - Add support for `maxLength` on all columns
To use this version, update the package.json versions for @Servicenow/sdk
to version 2.1.1
or later!
- 1,051 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Due to a transitive dependency issue that appeared after the release of 2.1.0, we have released 2.1.1 and marked 2.1.0 as deprecated in npm. There are no functional changes in this patch release, beyond fixing our dependency issue.
Please upgrade to 2.1.1 version in your projects immediately to avoid any installation and runtime issues.
1) Upgrade your package.json version by editing the file manually
"@servicenow/sdk": "2.1.1"
2) Using npm command: npm install @Servicenow/sdk@2.1.1 --save-dev
After either option, running npm install
again to validate everything is installed and upgraded.
After installing you should see version 2.1.1 output in the console logs when running any commands.