- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
11-20-2024 09:06 PM - edited 11-20-2024 09:08 PM
We are excited to announce that release 2.2.1 of the ServiceNow SDK is available on npm!
With this release we are squashing more bugs and adding a few new features to give developers more control over code transformation.
Changes:
-
Use now.config.json name property instead of package.json name for the Application name
ListColumn,TableNameColumn, DocumentIdColumn, DomainIdColumn, DomainPathColumn,
were generating the incorrect internal_type value and causing columns to not be created properly for Tables. If you use these we recommend upgrading to this release and validating after deploy
BasicImageColumn, SystemClassNameColumn, TranslatedFieldColumn, TranslatedTextColumn
UserRolesColumn, FieldNameColumn- Add documentation for CrossScopePrivilege API
- Fix build error when keys.ts contained a deleted entry for sys_modules
- Error when deprecated transpiledSourceDir is in use in favor of modulePaths configuration (See notes below)
-
Add support for composite indexes on tables
-
Add support for
@fluent-disable-sync
directive to disable transform for Fluent nodes or entire files. This should only be used when you want to always ignore changes from the instance on fetch and ensure the node is never updated.
Migration to modulePaths from transpiledSourceDir:
In a past release we deprecated transpiledSourceDir configuration property in favor of modulePaths, but we did not give any guidance or warnings on the consequences of continuing to use it. The property has no effect as of 2.1+ and is ignored, you must migrate over to modulePaths. If you are using transpiledSourceDir this is likely because you have a custom Typescript build set up, and you are configuring where the output files are located. You now need to use the modulePaths property to map your source files to your output files.
Example:
{
scopeId: '111111111',
scopeName: 'abc',
transpiledSourceDir: 'dist/server'
}
New way with modulePaths:
{
scopeId: '111111111',
scopeName: 'abc',
modulePaths: { 'src/server/*.ts': 'dist/server/*.js' }
}
Let us know in the SDK community forum if you have any issues or question!
- 708 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Thanks Bryce, I appreciate the good work of you and your team.