- Added
moreInfo
property toActivityDefinition
interface - Changed
display
property onVerb
interface to be optional - Changed
homePage
andname
properties onAccount
Interface to be required - Changed incorrect property
members
tomember
onGroup
- Divided
Group
Interface intoAnonymousGroup
andIdentifiedGroup
- Added
InverseFunctionalIdentifier
interface - Changed
objectType
property onActivity
interface to be optional - Changed
objectType
property onAgent
interface to be required when used asStatement
object
- Added missing
version
property toStatement
- Corrected to
Timestamp
type forstored
andtimestamp
properties onStatement
- Added missing
SubStatement
interface (See https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Data.md#substatements) - Corrected
StatementObject
union type to useSubStatement
instead ofStatement
- Updated dependencies
- Updated CI to test against node v16.x
- Improved
calculateISO8601Duration
to return durations including milliseconds - Fixed
calculateISO8601Duration
incorrectly returningPT
when the duration was 0 seconds (It now returnsPT0S
) - Fixed
calculateISO8601Duration
incorrectly handling negative durations (It now returnsPT0S
)
- Moved
XAPI
subclass methods to prototype to improve external testability
- Updated dependencies
- Improved handling of query parameters for
getSearchQueryParamsAsObject
helper
- Added new
getAxios()
helper method (#289)
- Fixed security vulnerabilities in dependencies
- Fixed issue with incorrect Document return type on getState
- Bumped dependencies
- Changed public API to use single object parameter
- Added full unit test coverage for node/dom environments
- Added new
useCacheBuster
feature for GET methods (Thanks @wuzzo-mike!) - Refactored entire library structure
- Bumped dependencies
- Bumped dependencies
- Improved node testing
- Bumped
axios
to solve security vulnerability - Bumped dependencies
- Document resources can now accept any content type (#167)
- Query parameter decoding now correctly handling plus signs (#175)
- Bumped dependencies
- Added
toBasicAuth()
helper method (#145) - Updated e2e GitHub Actions workflow to run simultaneously (#155)
- Added
sendStatements()
method - Added
voidStatements()
method - Fixed return types for
getStatement()
,getStatements()
andgetMoreStatements()
when requesting attachments - Bumped dependencies
- Fixed optional chaining not being transpiled with Babel on arm-64 devices (#146)
- The officially stable launch of xAPI.js v1.0.0! 🎉
- Added additional getting started examples
- Improved readme
- Bumped
axios
to solve security vulnerability - Bumped
node-notifier
to solve security vulnerability
- Bundle external, non built-in dependencies for axios
- Fixed typo in TinCanLaunchData
- Bumped dependencies
- Added exports for helper interfaces
- Fixed hash data returning in launch param helpers
- Improved multipart/mixed detection
- Added Prettier
- Bumped dependencies
- Added missing parameter
since
when retrieving multiple Documents
- Fixed Statement query interfaces for
format
parameter
- Fixed xAPI Launch not returning error in Promise
- Added coercion for
actor.account
- Added additional constructor parameter to set XAPI version header
- Coerce
actor
string arrays to strings if found in query string
- Added
getXAPILaunchData()
method - Added
getTinCanLaunchData()
method - Added Terser to produce minified bundles
- Fixed
getMoreStatements()
to use correct URL - Fixed error if no
Content-Type
header is returned from LRS - Changes responses to return entire
AxiosResponse
instead ofdata
property (For ETag support) - Added support for sending ETags with requests where required/optional
- Added Activities Resource
- Fixed Rollup configuration to export for UMD (Browser), CJS (Node) and ESM (Browser)
- Fixed issue when using
getStatements()
and querying withactor
parameter (xapijs#34)
- Split out SCORM profile, cmi5 profile, cmi5 demo into separate repos
- Module now exports as a single class
- Added State Resource documentation
- Added Activity Profile Resource documentation
- Added Agent Profile Resource documentation
- Modified authentication handling as per spec
- Added About Resource and documentation
- Added documentation for attachments
- Added support for deletion of multiple State documents
- Added Agents Resource and documentation
- Moved documentation to GitBook
- Scoped packages to
@xapi
namespace
- cmi5 profile: Implemented profile for cmi5 defined statements
- cmi5 profile: Added additional helpers for cmi5 allowed statements
- cmi5 profile: Added demo
- SCORM profile: Added additional methods (WIP)
- SCORM profile: Added Jest tests
- xAPI: Renamed
LRSConnection
toXAPI
- xAPI: Added Activity Profile API
- xAPI: Added Agent Profile API
- xAPI: Added Activity State API
- xAPI: Added Jest tests for new APIs
- Global: Added eslint
- Global: Added Rollup bundling for umd/esm export
- Extended documentation for xAPI Wrapper
- Added
getMoreStatements()
method
- Added Jest unit tests for LRSConnection
- Added
voidStatement()
andgetVoidedStatement()
methods - Updated
getStatements()
to support queries
- Added xAPI LRS connection and statement getting/sending (WIP)
- Added SCORM Profile for performing SCORM style xAPI communications (WIP)