Skip to content

Commit

Permalink
update version to 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bigabig committed Sep 19, 2024
1 parent e8bd83e commit bcc1895
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/src/configs/version.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
api:
version: 1.0.3
version: 1.0.5
6 changes: 3 additions & 3 deletions frontend/bin/updateVersion.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFileSync, writeFileSync } from "fs";
import { execSync } from "child_process";
import { readFileSync, writeFileSync } from "fs";

const contents = JSON.parse(readFileSync("src/openapi.json"));
const version = contents.info.version;
Expand All @@ -8,8 +8,8 @@ const packageJson = JSON.parse(readFileSync("package.json"));
packageJson.version = version;
writeFileSync("package.json", JSON.stringify(packageJson));

const packageLockJson = JSON.parse(fs.readFileSync("package-lock.json"));
const packageLockJson = JSON.parse(readFileSync("package-lock.json"));
packageLockJson.version = version;
fs.writeFileSync("package-lock.json", JSON.stringify(packageLockJson));
writeFileSync("package-lock.json", JSON.stringify(packageLockJson));

execSync(`npx prettier --write package.json`);
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "1.0.3",
"version": "1.0.5",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/openapi/core/OpenAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type OpenAPIConfig = {

export const OpenAPI: OpenAPIConfig = {
BASE: "",
VERSION: "1.0.3",
VERSION: "1.0.5",
WITH_CREDENTIALS: false,
CREDENTIALS: "include",
TOKEN: undefined,
Expand Down
24 changes: 23 additions & 1 deletion frontend/src/openapi.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"openapi": "3.1.0",
"info": { "title": "Discourse Analysis Tool Suite API", "version": "1.0.3" },
"info": { "title": "Discourse Analysis Tool Suite API", "version": "1.0.5" },
"paths": {
"/heartbeat": {
"get": {
Expand Down Expand Up @@ -119,6 +119,28 @@
}
}
},
"/authentication/content": {
"get": {
"tags": ["authentication"],
"summary": "Returns success if the user can access the content",
"operationId": "auth_content",
"parameters": [
{
"name": "x-original-uri",
"in": "header",
"required": false,
"schema": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "X-Original-Uri" }
}
],
"responses": {
"200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } },
"422": {
"description": "Validation Error",
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }
}
}
}
},
"/user/me": {
"get": {
"tags": ["user"],
Expand Down

0 comments on commit bcc1895

Please sign in to comment.