Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

Commit

Permalink
Release v0.11.0 (#14)
Browse files Browse the repository at this point in the history
* Fix <interface AccountInput>

* Fix <createTextMessage()>

* Update to Omni Chat Backend 0.18.0
  • Loading branch information
Neel Kamath committed Apr 6, 2021
1 parent 825e9c3 commit ab4a5b9
Show file tree
Hide file tree
Showing 26 changed files with 538 additions and 319 deletions.
79 changes: 76 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,80 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.10.0](https://github.com/neelkamath/omni-chat-js/releases/tag/v0.7.0) - 2020-03-25
## [0.11.0](https://github.com/neelkamath/omni-chat-js/releases/tag/v0.11.0) - 2020-04-06

### Added

- `searchBlockedUsers()`
- `interface DeletedAccount`
- `createContact()`
- `deleteContact()`
- `interface StarredMessagesConnection`
- `interface StarredMessageEdge`
- `interface ChatMessagesConnection`
- `interface ChatMessagesEdge`
- `interface ChatsConnection`
- `interface ChatEdge`
- `interface GroupChatsConnection`
- `interface GroupChatEdge`

### Changed

- `interface AccountInput`
- Rename `chatId` to `id` in `interface UnstarredChat`.
- `scalar Username`
- Add `interface DeletedAccount` to `interface AccountsSubscription`.
- Return a `boolean` instead of a `Placeholder` from `unblockUser()` to indicate whether the user got unblocked.
- Use GitHub Flavored Markdown instead of CommonMark (update `type Bio`, `type GroupChatDescription`, and `type MessageText` accordingly).
- Paginate `readStars()`.
- Paginate `searchMessages()`.
- Paginate `readChats()`.
- Paginate `searchChats()`.
- Paginate `searchPublicChats()`.
- Remove the `dateTimes` field, and add the `sent` field to the following:
- `interface NewMessage`
- `interface NewTextMessage`
- `interface NewActionMessage`
- `interface NewPicMessage`
- `interface NewPollMessage`
- `interface NewAudioMessage`
- `interface NewGroupChatInviteMessage`
- `interface NewDocMessage`
- `interface NewVideoMessage`
- Remove the `dateTimes` field, and add the `sent` and `statuses` fields to the following:
- `interface Message`
- `interface TextMessage`
- `interface ActionMessage`
- `interface PicMessage`
- `interface PollMessage`
- `interface AudioMessage`
- `interface GroupChatInviteMessage`
- `interface DocMessage`
- `interface VideoMessage`
- `interface StarredMessage`
- `interface StarredTextMessage`
- `interface StarredActionMessage`
- `interface StarredPicMessage`
- `interface StarredPollMessage`
- `interface StarredAudioMessage`
- `interface StarredGroupChatInviteMessage`
- `interface StarredDocMessage`
- `interface StarredVideoMessage`

### Removed

- Remove `createContacts()` in favor of `createContact()`.
- Remove `deleteContacts()` in favor of `deleteContact()`.
- `interface BareMessage`
- `interface BareChatMessage`
- `interface MessageDateTimes`

### Fixed

- Fix pagination bugs.
- `createTextMessage()`

## [0.10.0](https://github.com/neelkamath/omni-chat-js/releases/tag/v0.10.0) - 2020-03-25

### Added

Expand All @@ -32,7 +105,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- `searchChatMessages()`
- `subscribeToMessages()`

## [0.9.0](https://github.com/neelkamath/omni-chat-js/releases/tag/v0.7.0) - 2020-03-21
## [0.9.0](https://github.com/neelkamath/omni-chat-js/releases/tag/v0.9.0) - 2020-03-21

### Added

Expand Down Expand Up @@ -76,7 +149,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- `class NameScalarError`
- `class DateTimeScalarError`

## [0.8.0](https://github.com/neelkamath/omni-chat-js/releases/tag/v0.7.0) - 2020-03-20
## [0.8.0](https://github.com/neelkamath/omni-chat-js/releases/tag/v0.8.0) - 2020-03-20

### Added

Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ Official [Omni Chat API](https://github.com/neelkamath/omni-chat-backend) JavaSc

This table shows which versions of Omni Chat JS support which versions of Omni Chat Backend:

| Omni Chat JS | Omni Chat Backend |
| :-------------: | :---------------: |
| 0.8.0 or higher | 0.17.0 |
| 0.5.0 - 0.7.0 | 0.16.0 |
| 0.1.0 - 0.4.0 | 0.15.0 |
| Omni Chat JS | Omni Chat Backend |
| :--------------: | :---------------: |
| 0.11.0 or higher | 0.18.0 |
| 0.8.0 - 0.10.0 | 0.17.0 |
| 0.5.0 - 0.7.0 | 0.16.0 |
| 0.1.0 - 0.4.0 | 0.15.0 |

```
npm i @neelkamath/omni-chat
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neelkamath/omni-chat",
"version": "0.10.0",
"version": "0.11.0",
"description": "Official Omni Chat API wrapper library",
"scripts": {
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/validators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '../graphql-api';

describe('isValidUsernameScalar()', () => {
test('username must be valid', () => expect(isValidUsernameScalar('username')).toBe(true));
test('username must be valid', () => expect(isValidUsernameScalar('a0._')).toBe(true));

test('username cannot contain whitespace', () => expect(isValidUsernameScalar('user name')).toBe(false));

Expand Down
Loading

0 comments on commit ab4a5b9

Please sign in to comment.