Skip to content

Commit

Permalink
Multiple changes
Browse files Browse the repository at this point in the history
- package moved to the `grammyjs` organization
- released as a first stable version
- updated CHANGELOG
- updated `@moebius/fluent` dependency to reference the stable version of the library

Signed-off-by: Slava Fomin II <slava@fomin.io>
  • Loading branch information
slavafomin committed Jan 25, 2022
1 parent 1dbc61b commit f34f021
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 17 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@

# v1.0.0 (major release)

## Breaking change

- package moved to the `grammyjs` organization
- released as a first stable version


# v0.4.0 (major release)

## Breaking change
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

# @moebius/grammy-fluent
# @grammyjs/fluent

<!-- NPM Badge -->
<a href="https://badge.fury.io/js/@moebius%2Fgrammy-fluent">
<img src="https://badge.fury.io/js/@moebius%2Fgrammy-fluent.svg" alt="npm version" height="18">
<a href="https://badge.fury.io/js/@grammyjs%2Ffluent">
<img src="https://badge.fury.io/js/@grammyjs%2Ffluent.svg" alt="npm version" height="18">
</a>

<!-- MIT License Badge -->
Expand Down Expand Up @@ -103,7 +103,7 @@ welcome = Welcome, {$name}, to the {-project-name}!
Install the libraries:

```shell
npm install --save @moebius/grammy-fluent @moebius/fluent
npm install --save @grammyjs/fluent @moebius/fluent
```


Expand All @@ -119,7 +119,7 @@ npm install --save @moebius/grammy-fluent @moebius/fluent
```typescript
import { Bot, Context } from 'grammy';
import { Fluent } from '@moebius/fluent';
import { useFluent, FluentContextFlavor } from '@moebius/grammy-fluent';
import { useFluent, FluentContextFlavor } from '@grammyjs/fluent';

// Extend your application context type with the provided
// flavor interface
Expand Down Expand Up @@ -368,8 +368,8 @@ SOFTWARE.



[grammy-website]: https://grammy.dev/
[fluent-website]: https://projectfluent.org/
[fluent-js]: https://github.com/projectfluent/fluent.js/
[moebius-fluent]: https://github.com/the-moebius/fluent
[i18n-plugin]: https://github.com/grammyjs/i18n
[grammy-website]: https://grammy.dev/
[fluent-website]: https://projectfluent.org/
[fluent-js]: https://github.com/projectfluent/fluent.js/
[moebius-fluent]: https://github.com/the-moebius/fluent
[i18n-plugin]: https://github.com/grammyjs/i18n
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@moebius/grammy-fluent",
"version": "0.4.1",
"name": "@grammyjs/fluent",
"version": "1.0.0",
"description": "Fluent localization system integration for grammY Telegram bot framework",
"scripts": {
"build": "rm -rf ./dist && tsc -p ./tsconfig.lib.json",
"prepublishOnly": "npm run build",
"prepack": "npm run build",
"test": ":"
},
"main": "dist/index.js",
Expand All @@ -29,10 +29,10 @@
"translation"
],
"license": "MIT",
"homepage": "https://github.com/the-moebius/grammy-fluent#readme",
"repository": "github:the-moebius/grammy-fluent",
"homepage": "https://github.com/grammyjs/fluent#readme",
"repository": "github:grammyjs/fluent",
"bugs": {
"url": "https://github.com/the-moebius/grammy-fluent/issues"
"url": "https://github.com/grammyjs/fluent/issues"
},
"author": {
"name": "Slava Fomin II",
Expand All @@ -56,7 +56,7 @@
"access": "public"
},
"peerDependencies": {
"@moebius/fluent": "0.3.1",
"@moebius/fluent": "^1.0.0",
"grammy": "^1.5.0"
},
"dependencies": {},
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

import { useFluent } from './middleware';


export {
FluentContextFlavor,
GrammyFluentOptions,
Expand Down

0 comments on commit f34f021

Please sign in to comment.