Skip to content

Commit

Permalink
feat(shrink proxy): bundles in fsxa-api are large which causes perfor…
Browse files Browse the repository at this point in the history
…mance problems

- enabled release process for current branch
- edited contributers
- remove cryptic fsxa proxy package name
- uninstalled proxy package dependency

TNG-1347
  • Loading branch information
spirit-wiegmann committed Mar 13, 2024
1 parent f0ad6ff commit c8727a3
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ import {
LogLevel,
FSXARemoteApi,
} from 'fsxa-api'
import { FSXAProxyApi } from 'fjdsdjjxsa-proxy-api'
import { FSXAProxyApi } from 'fsxa-proxy-api'
import getExpressRouter from 'fsxa-api/dist/lib/integrations/express'
import 'cross-fetch/polyfill'

Expand Down
2 changes: 1 addition & 1 deletion dev/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import express from 'express'
import cors from 'cors'
import { FSXAContentMode, FSXARemoteApi } from '../src'
import { default as expressIntegration } from '../src/integrations/express'
import { FSXAProxyApi, LogLevel } from 'fjdsdjjxsa-proxy-api'
import { FSXAProxyApi, LogLevel } from 'fsxa-proxy-api'
require('cross-fetch/polyfill')

dotenv.config({ path: './dev/.env' })
Expand Down
11 changes: 5 additions & 6 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@
"chalk": "^4.1.2",
"cors": "^2.8.5",
"date-fns": "^2.23.0",
"fjdsdjjxsa-proxy-api": "^10.20.1-alpha.41",
"lodash": "^4.17.21",
"qs": "^6.10.1",
"reconnecting-websocket": "^4.4.0",
Expand Down
2 changes: 1 addition & 1 deletion proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Here is an example of how the `FSXAProxyApi` could be used backend.
Make sure you have `fsxa-proxy-api` installed.

```typescript
import { FSXAProxyApi, LogLevel } from 'fjdsdjjxsa-proxy-api'
import { FSXAProxyApi, LogLevel } from 'fsxa-proxy-api'

const locale = 'de_DE'
const proxyAPI = new FSXAProxyApi(
Expand Down
11 changes: 5 additions & 6 deletions proxy/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"name": "fjdsdjjxsa-proxy-api",
"name": "fsxa-proxy-api",
"version": "10.20.1-alpha.41",
"description": "The JavaScript Content API Library a.k.a Content API is an interface handling data coming from the FirstSpirit CaaS and the Navigation Service.",
"keywords": [],
"main": "dist/fjdsdjjxsa-proxy-api.cjs.js",
"module": "dist/fjdsdjjxsa-proxy-api.es5.js",
"main": "dist/fsxa-proxy-api.cjs.js",
"module": "dist/fsxa-proxy-api.es5.js",
"types": "dist/types",
"author": "Tobias Golbs <[email protected]>",
"contributors": [
"Dominik Barczewski <[email protected]>",
"Nicolai Henczi <[email protected]>",
"Jaswin Schütz <[email protected]>"
"Nicolai McAlley <[email protected]>",
"Justin Wiegmann <[email protected]>"
],
"files": [
"dist",
Expand Down
6 changes: 3 additions & 3 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ export default [
external: [...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.peerDependencies || {})],
output: [
{
file: 'proxy/dist/fjdsdjjxsa-proxy-api.cjs.js',
file: 'proxy/dist/fsxa-proxy-api.cjs.js',
format: 'cjs',
},
{
file: 'proxy/dist/fjdsdjjxsa-proxy-api.es5.js',
file: 'proxy/dist/fsxa-proxy-api.es5.js',
format: 'esm',
},
],
plugins: [
visualizer({
emitFile: true,
filename: "stats/fjdsdjjxsa-proxy-api.html",
filename: "stats/fsxa-proxy-api.html",
}),
ts(),
json(),
Expand Down

0 comments on commit c8727a3

Please sign in to comment.