Skip to content

Commit

Permalink
--- v0.5.0 ---
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebremer committed Mar 10, 2024
1 parent 09d85d5 commit a59941c
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 23 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@ Changelog



v0.5.0
------

* AMD bundle for front-end by @sophiebremer in https://github.com/typescriptlibs/tsl-mastodon-api/pull/29
- Add AMD bundle for front-end implementations
- Add test suite for front-end implementations to the GitHub repository
- Improve API errors; use `API.Result.error` instead of `API.Result.failed`
- Improve Bridge

* Support async media upload by @sophiebremer in https://github.com/typescriptlibs/tsl-mastodon-api/pull/37
- Add optional processing await for Mastodon API v2
- Add optional `forcedDelay` parameter for minimum `API.delay`
- Fix video attachment validation

* Support media update by @sophiebremer in https://github.com/typescriptlibs/tsl-mastodon-api/pull/38
- Add `API.putMediaAttachmentUpdate`
- Update `JSON.MediaAttachment`; `url` parameter can become `null`

**Full Changelog**: https://github.com/typescriptlibs/tsl-mastodon-api/compare/v0.4.2...v0.5.0



v0.4.2
------

Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ The following versions of tsl-mastodon-api are currently being supported with se

| Version | Supported |
| ------- | --------- |
| 0.4.0 | yes |
| < 0.4.0 | no |
| 0.5.0 | yes |
| < 0.5.0 | no |



Expand Down
20 changes: 12 additions & 8 deletions amd/tsl-mastodon-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1064,8 +1064,9 @@ declare module "tsl-mastodon-api/lib/JSON/MediaAttachment" {
* The location of the original full-size attachment.
*
* Since Mastodon v3.1.2 the URL can be `null`, when the full-size file is
* still processing. However, the preview_url should be available. Use
* `API.getMediaAttachment` to check the status of the media attachment.
* still being processed in the background. However, the preview_url should
* be available. Use `API.getMediaAttachment` to check the status of the
* media attachment.
*
* @since 0.6.0
*/
Expand Down Expand Up @@ -1151,8 +1152,9 @@ declare module "tsl-mastodon-api/lib/JSON/MediaAttachment" {
* The location of the original full-size attachment.
*
* Since Mastodon v3.1.2 the URL can be `null`, when the full-size file is
* still processing. However, the preview_url should be available. Use
* `API.getMediaAttachment` to check the status of the media attachment.
* still being processed in the background. However, the preview_url should
* be available. Use `API.getMediaAttachment` to check the status of the
* media attachment.
*
* @since 0.6.0
*/
Expand Down Expand Up @@ -1287,8 +1289,9 @@ declare module "tsl-mastodon-api/lib/JSON/MediaAttachment" {
* The location of the original full-size attachment.
*
* Since Mastodon v3.1.2 the URL can be `null`, when the full-size file is
* still processing. However, the preview_url should be available. Use
* `API.getMediaAttachment` to check the status of the media attachment.
* still being processed in the background. However, the preview_url should
* be available. Use `API.getMediaAttachment` to check the status of the
* media attachment.
*
* @since 0.6.0
*/
Expand Down Expand Up @@ -1342,8 +1345,9 @@ declare module "tsl-mastodon-api/lib/JSON/MediaAttachment" {
* The location of the original full-size attachment.
*
* Since Mastodon v3.1.2 the URL can be `null`, when the full-size file is
* still processing. However, the preview_url should be available. Use
* `API.getMediaAttachment` to check the status of the media attachment.
* still being processed in the background. However, the preview_url should
* be available. Use `API.getMediaAttachment` to check the status of the
* media attachment.
*
* @since 0.6.0
*/
Expand Down
2 changes: 1 addition & 1 deletion amd/tsl-mastodon-api.js.map

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions lib/JSON/MediaAttachment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ export interface GIFVAttachment {
* The location of the original full-size attachment.
*
* Since Mastodon v3.1.2 the URL can be `null`, when the full-size file is
* still processing. However, the preview_url should be available. Use
* `API.getMediaAttachment` to check the status of the media attachment.
* still being processed in the background. However, the preview_url should
* be available. Use `API.getMediaAttachment` to check the status of the
* media attachment.
*
* @since 0.6.0
*/
Expand Down Expand Up @@ -224,8 +225,9 @@ export interface ImageAttachment {
* The location of the original full-size attachment.
*
* Since Mastodon v3.1.2 the URL can be `null`, when the full-size file is
* still processing. However, the preview_url should be available. Use
* `API.getMediaAttachment` to check the status of the media attachment.
* still being processed in the background. However, the preview_url should
* be available. Use `API.getMediaAttachment` to check the status of the
* media attachment.
*
* @since 0.6.0
*/
Expand Down Expand Up @@ -360,8 +362,9 @@ export interface UnknownAttachment {
* The location of the original full-size attachment.
*
* Since Mastodon v3.1.2 the URL can be `null`, when the full-size file is
* still processing. However, the preview_url should be available. Use
* `API.getMediaAttachment` to check the status of the media attachment.
* still being processed in the background. However, the preview_url should
* be available. Use `API.getMediaAttachment` to check the status of the
* media attachment.
*
* @since 0.6.0
*/
Expand Down Expand Up @@ -415,8 +418,9 @@ export interface VideoAttachment {
* The location of the original full-size attachment.
*
* Since Mastodon v3.1.2 the URL can be `null`, when the full-size file is
* still processing. However, the preview_url should be available. Use
* `API.getMediaAttachment` to check the status of the media attachment.
* still being processed in the background. However, the preview_url should
* be available. Use `API.getMediaAttachment` to check the status of the
* media attachment.
*
* @since 0.6.0
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/JSON/MediaAttachment.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"name": "tsl-mastodon-api",
"type": "module",
"version": "0.4.2",
"version": "0.5.0",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"bugs": "https://github.com/typescriptlibs/tsl-mastodon-api/issues",
Expand Down

0 comments on commit a59941c

Please sign in to comment.