Skip to content

Commit

Permalink
release: client 0.1.0 (#6)
Browse files Browse the repository at this point in the history
* chore(client): add assets and bump version
* chore: rename scope to fal-ai
  • Loading branch information
drochetti authored Mar 31, 2023
1 parent 5c4cdee commit ed32204
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The fal-serverless JS Client

![NPM](https://img.shields.io/npm/v/@fal/serverless-js)
![NPM](https://img.shields.io/npm/v/@fal-ai/serverless-js)
![License](https://img.shields.io/github/license/fal-ai/serverless-js)
![Build](https://img.shields.io/github/actions/workflow/status/fal-ai/serverless-js/build)

Expand All @@ -27,7 +27,7 @@ It also handle platform differences, so it work seamlessly across different JS r
1. First you need to configure your credentials:

```ts
import * as fal from '@fal/serverless-js';
import * as fal from '@fal-ai/serverless-js';

fal.config({
credentials: {
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-app/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styles from './index.module.css';
import * as fal from '@fal/serverless-client';
import * as fal from '@fal-ai/serverless-client';

fal.config({
credentials: {
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-app/services/generateImage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as fal from '@fal/serverless-client';
import * as fal from '@fal-ai/serverless-client';

export type GenerateImageInput = {
prompt: string;
Expand Down
5 changes: 3 additions & 2 deletions libs/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@fal/serverless-client",
"name": "@fal-ai/serverless-client",
"description": "The fal serverless JS/TS client",
"version": "0.0.0-semantic-release",
"version": "0.1.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/fal-ai/serverless-js.git",
Expand Down
2 changes: 1 addition & 1 deletion libs/client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"tsConfig": "libs/client/tsconfig.lib.json",
"packageJson": "libs/client/package.json",
"main": "libs/client/src/index.ts",
"assets": ["libs/client/*.md"]
"assets": ["LICENSE", "CODE_OF_CONDUCT.md", "README.md"]
}
},
"lint": {
Expand Down
2 changes: 1 addition & 1 deletion libs/client/src/runtime.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ describe('the runtime test suite', () => {
});

it('should create the correct user agent identifier', () => {
expect(getUserAgent()).toMatch(/@fal\/serverless-client/);
expect(getUserAgent()).toMatch(/@fal-ai\/serverless-client/);
});
});
2 changes: 1 addition & 1 deletion libs/codegen/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fal/serverless-codegen",
"name": "@fal-ai/serverless-codegen",
"version": "0.0.1",
"bin": {
"ksjs": "./bin/run"
Expand Down
2 changes: 1 addition & 1 deletion libs/codegen/src/generators/generateFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function generateFunction(metadata: IsolateFunctionMetadata): string {
members.push({
kind: StructureKind.ImportDeclaration,
namedImports: ['run'],
moduleSpecifier: '@fal/serverless-client',
moduleSpecifier: '@fal-ai/serverless-client',
} as ImportDeclarationStructure);
members.push({
kind: StructureKind.ImportDeclaration,
Expand Down
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"npmScope": "@fal/serverless",
"npmScope": "@fal-ai/serverless",
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/nx-cloud",
Expand Down
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
@@ -1,5 +1,5 @@
{
"name": "@fal/serverless",
"name": "@fal-ai/serverless",
"version": "0.0.0",
"license": "MIT",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@fal/serverless-client": ["libs/client/src/index.ts"],
"@fal/serverless-codegen": ["libs/codegen/src/index.ts"]
"@fal-ai/serverless-client": ["libs/client/src/index.ts"],
"@fal-ai/serverless-codegen": ["libs/codegen/src/index.ts"]
}
},
"exclude": ["node_modules", "tmp"]
Expand Down

0 comments on commit ed32204

Please sign in to comment.