- Fixed caching issue
- Implemented push notifications
- Fixed a migration bug
- Added
directory.initialData
to send preloaded data - Improved
item.similarItems
system - Added
item.topItems
- Made
type: directory
a requirement for dashboards
- Moved dashboard system from
addon.dashboards
toaddon.pages
- Removed
GenericID
, most ID's are of typestring
now - Various other bugfixes and improvments
- Removed legacy
iptv
action
Simplified the whole addon system.
- Moved all addon types into one addon
- Changes on the
Addon
object:- Removed
repository
functionality - Removed
poster
andplatforms
properties fromAddon
object - Flattened
flags
property ofAddon
object - Renamed
directory
action tocatalog
- Renamed
rootDirectories
tocatalogs
- Removed
- Renamed
Directory.rootId
toDirectory.catalogId
- Various other fixes and improvments
- Moved caching logic to module
@mediaurl/cache
- Added cassandra caching engine
- Updated dependencies
- Switched to exact dependency versions
- Added
cleanup-cache
command line function to run garbage collections - Removed the the automatic garbage collection of
sql-cache
package
- Fixed sql-cache duplicate primary key race conditions
- Updated OpenAPI schema
- Renamed worker addon property
requestArgs
totriggers
- Task responses can now use the normal action endpoints
- Added @mediaurl/sql-cache module to add support for postgres and mysql backends
On worker addons, rename the addon property from requestArgs
to triggers
.
- Added selftest handlers for multi addon servers
- Falling back to legacy URL's on
repository
action handler
- Added property
endpoints
toAddon
object - Created a new URL schema for mediaurl routes
- Renamed project to MediaURL
- Moved Redis and MongoDB cache code to external modules
- Allow
.json
extension for HTTP endpoints - Deprecated the
@mediaurl/i18n
module - Created new
@mediaurl/test-utils
module with utility functions to test addons and cache modules
- Added
SetResultError
to set cache results in a different way. For more infos, see the code documentation. - Added IPTV category property and default filter values
- Removed the
@mediaurl/create
package - Removed the
watched-sdk
command line tool - Added experimental
FetchAgent
- Added
SetResultError
to set cache results in a different way. For more infos, see the code documentation. - Added IPTV category property and default filter values
- Removed the
@mediaurl/create
package - Removed the
watched-sdk
command line tool - Added experimental
FetchAgent
- Dropping legacy Node.js versions (=> 12.9 is now required)
- Added similar item system for items. See the
similarItem
property. Similar items will be displayed as horizontal lists below movie, series or channel items. - Created
toast
task to display toast messages inside the app (seectx.toast
) - Created
notification
task to display notifications with various options inside the app (seectx.notification
). Notifications can be displayed once every 30 minute per addon. You can set theurl
property to open an URL when the user clicks on the notification. MediaURL sharing URL's are handled internally, so you can promote for example an item or addon. - Various bugfixes and improvments
Edit your tsconfig.json
and replace
"target": "es5",
with
"target": "es2019",
"lib": ["es2020"],
"moduleResolution": "node",
- Created
CHANGELOG.md
- The
watched-sdk
command line tool will be legacy starting with v0.32 - The
@mediaurl/create
command line tool is printing a legacy message - The
testAddon
function in@mediaurl/test
is printing a legacy message when it's used
Since the watched-sdk
command is legacy, you can't export your addons anymore.
-
Install
ts-node-dev
:npm install --save-dev ts-node-dev
-
package.json
(change thestart
anddevelop
scripts){ "scripts": { "build": "tsc", "start": "node .", "develop": "ts-node-dev --transpileOnly src", "test": "jest" } }
-
src/index.ts
import { runCli } from "@mediaurl/sdk"; // Your code here runCli([yourAddon, anotherAddon]);