Skip to content

Commit

Permalink
Update altair version to 6.1.0 (#962)
Browse files Browse the repository at this point in the history
* Update altair version to 6.1.0

* dedupe
  • Loading branch information
PabloSzx committed Jan 4, 2024
1 parent 0e68bb3 commit 6fb104e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-planets-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-ez/plugin-altair': patch
---

Update altair version to 6.1.0
2 changes: 1 addition & 1 deletion packages/plugin/altair/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"@graphql-ez/utils": "workspace:^",
"altair-static-slim": "5.0.9",
"altair-static": "^6.1.0",
"cross-undici-fetch": "^0.4.14",
"mime-types": "^2.1.35"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/altair/src/render/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const AltairDeps = LazyPromise(async () => {
},
{ resolve },
{ lookup },
] = await Promise.all([import('altair-static-slim').then(getDefault), import('fs'), import('path'), import('mime-types')]);
] = await Promise.all([import('altair-static'), import('fs'), import('path'), import('mime-types')]);

return {
getDistDirectory,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin/altair/src/render/unpkg.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { withoutTrailingSlash, withTrailingSlash } from '@graphql-ez/utils/url';
import type { AltairConfigOptions, RenderOptions } from 'altair-static-slim';
import type { AltairConfigOptions, RenderOptions } from 'altair-static';
import type { AltairRender } from '../types';

export const altairUnpkgDist = 'https://unpkg.com/altair-static@4.3.1/build/dist/';
export const altairUnpkgDist = 'https://unpkg.com/altair-static@6.1.0/build/dist/';

let fetchFn: Promise<typeof fetch> | typeof fetch;

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/altair/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PickRequired } from 'graphql-ez';
import type { RenderOptions } from 'altair-static-slim';
import type { RenderOptions } from 'altair-static';
import type { IncomingMessage, ServerResponse } from 'http';

export interface AltairOptions extends Omit<RenderOptions, 'endpointURL'> {
Expand Down
12 changes: 9 additions & 3 deletions pnpm-lock.yaml

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

0 comments on commit 6fb104e

Please sign in to comment.