包详细信息

ask-sdk-core

alexa25.6kApache-2.02.14.0

Core package for Alexa Skills Kit SDK

Alexa, SDK

自述文件

Core SDK package contains basic components and default implementations of ASK SDK v2 for Node.js.

What is ASK SDK v2 for Node.js

The ASK SDK v2 for Node.js is an open-source Alexa Skill Development Kit. ASK SDK v2 for Node.js makes it easier for you to build highly engaging skills, by allowing you to spend more time on implementing features and less on writing boiler-plate code.

Installing

To use the Core SDK package, you need to install two modules: core SDK and model(peer dependency of core SDK) within your NPM project. Run the following commands in the terminal to install them:

npm install --save ask-sdk-core
npm install --save ask-sdk-model

Usage and Getting Started

You can find a getting started guide here.

Usage with TypeScript

The Core SDK package for Node.js bundles TypeScript definition files for use in TypeScript projects and to support tools that can read .d.ts files. Our goal is to keep these TypeScript definition files updated with each release for any public api.

Pre-requisites

Before you can begin using these TypeScript definitions with your project, you need to make sure your project meets a few of these requirements:

  • Use TypeScript v2.x
  • Includes the TypeScript definitions for node. You can use npm to install this by typing the following into a terminal window:
npm install --save-dev @types/node

In Node.js

To use the TypeScript definition files within a Node.js project, simply import ask-sdk-core as below:

In a TypeScript file:

import * as Alexa from 'ask-sdk-core';

In a JavaScript file:

const Alexa = require('ask-sdk-core');

Opening Issues

For bug reports, feature requests and questions, we would like to hear about it. Search the existing issues and try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version of the SDK, Node.js or browser environment and OS you’re using. Please include a stack trace and reduced repro case when appropriate, too.

License

This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.

更新日志

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.14.0 (2023-04-03)

Bug Fixes

  • version: typescript dependency (c2756d9)
  • warnings: removed extraneous spaces (7ad1651)

Features

  • component-interface: egress and ingress interface for ac skill components (41f5102)
  • delegation: delegation handler for AC to IM (06a2b2c)

2.13.0 (2023-04-03)

Bug Fixes

  • version: typescript dependency (c2756d9)
  • warnings: removed extraneous spaces (7ad1651)

Features

  • component-interface: egress and ingress interface for ac skill components (41f5102)
  • delegation: delegation handler for AC to IM (06a2b2c)

2.12.1 (2022-04-01)

Bug Fixes

  • ask-sdk-core: type error in util (a55afab), closes #709

2.12.0 (2022-01-28)

Bug Fixes

  • updated node minimum versions for Github Actions and @types/node to fix test failures (7636f36)

Features

  • adding A/B testing SPIs to core package (89cf2ed)

2.11.0 (2021-07-21)

Bug Fixes

  • updated return type of getDialogState (ef6b97e)

Features

  • add util function addDirectiveToReprompt (#694) (fb980db)

2.10.2 (2021-03-16)

Bug Fixes

2.10.1 (2020-10-09)

Features

  • export UserAgentManager class in SDK core

2.10.0 (2020-10-08)

Bug Fixes

  • fix the github action workflow and compilation making relative require fail issue (#658) (895c88e)
  • Update ask-sdk-core package.json dependencies (752d6ec)
  • update rootDir to point to the right root dir in tsconfig file in tst (66ca284)
  • Updated all packages .npmignore files (de76a18)
  • Updated all packages package.json (#656) (c27c3e6)

Features

  • add UserAgentManager (bc03b55)
  • Update root package.json to fix doc generation (4bf482b)

2.9.0 (2020-07-22)

Bug Fixes

  • general fix on some typo and lint issues (#633) (11ce407)

Features

  • add a defaultAttributes parameter in getPersistentAttributes (#626) (5372544)

2.8.0 (2020-04-01)

Bug Fixes

  • Export LambdaHandler type definition (#615) (e4c2eaa)
  • extend tslint test to cover all test files (#588) (b142590)
  • fixed one type definition and some doc issues (#583) (5cc2576)

Features

  • add new util function (getRequest) (#582) (a618ba9)
  • optionally allow passing a boolean to getPersistentAttributes to cont… (#547) (e62421c)

2.7.0 (2019-08-01)

Bug Fixes

  • change the getSlotValue util function to return null when slot is not present (#573) (1321407)
  • export getUserId() at index.ts of both ask-sdk-core and ask-sdk(#561) (b4b0980)
  • fixing the comment for getSlotValue util function (#567) (89173bc)

Features

  • Add TypeScript Generics on the getSessionAttributes Method (#554) (0824495)
  • add appendAdditionalUserAgent function to customSkill in ask-sdk-core (#575) (7bbd7a6)

2.6.0 (2019-05-29)

Features

  • add getUserId util function (f898423)
  • Add support for the HUB_LANDSCAPE_SMALL (Echo Show 5) viewport (#557) (707b0b2)

2.5.2 (2019-04-24)

Bug Fixes

  • update getDeviceId to check for optional device field (#535) (884a904), closes #532

2.5.1 (2019-03-08)

Bug Fixes

  • remove response factory auto escape xml character behavior. (31ce953)

2.5.0 (2019-03-07)

Bug Fixes

  • update peer dependency of ask-sdk-model (#526) (9167297)

Features

2.4.0 (2019-02-21)

Features

  • add deleteAttributes to PersistenceAdapter interface and deletePersistentAttributes to AttributesManager interface (#507) (e7409f1)
  • add playbehavior support to response builder (#515) (7a51f29)

2.3.0 (2018-11-05)

Features

  • add support for CanFulfillIntentRequest (f38c3d0)

2.2.0 (2018-10-30)

Features

  • add support for Alexa Presentation Language (APL) (bcdfec8)

2.1.0 (2018-10-04)

Features

2.0.10 (2018-09-25)

Note: Version bump only for package ask-sdk-core

2.0.9 (2018-09-10)

Note: Version bump only for package ask-sdk-core

2.0.7 (2018-06-22)

Bug Fixes

  • update attributes persistence behavior of ask-sdk-v1adapter (51432df), closes #414

2.0.5 (2018-05-16)

Bug Fixes

  • update execution behavior of interceptor (352f638)