Skip to content

Commit

Permalink
Merge pull request #180 from curveball/release-1.1.0
Browse files Browse the repository at this point in the history
Release 1.1.0
  • Loading branch information
evert committed Jan 24, 2024
2 parents bfb1eac + 3c40898 commit 39ed2ab
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 79 deletions.
1 change: 1 addition & 0 deletions assets/themes/curveball/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ a.definition {
.method-delete { background: #d93b3b; }
.method-patch { background: #7a36ad; }
.method-search { background: #9c1497; }
.method-query { background: #aaaa44; }

main code {
border-radius: 2px;
Expand Down
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

1.1.0 (2024-01-24)
------------------

* Add color for HTTP QUERY methods.
* Remove node-fetch dependency.


1.0.3 (2024-01-15)
------------------

Expand Down
130 changes: 59 additions & 71 deletions package-lock.json

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

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curveball/browser",
"version": "1.0.3",
"version": "1.1.0",
"description": "Automatic API browser generator. A middleware that turns your JSON responses into HTML if accessed by a browser.",
"type": "module",
"exports": "./dist/index.js",
Expand Down Expand Up @@ -39,7 +39,6 @@
"highlight.js": "^11.2.0",
"ketting": "^7.5.1",
"markdown-it": "^14.0.0",
"node-fetch": "^2.6.7",
"react": "^18.1.0",
"react-dom": "^18.1.0"
},
Expand All @@ -53,7 +52,6 @@
"@types/markdown-it": "^13.0.7",
"@types/mocha": "^10.0.1",
"@types/node": "^18.19.7",
"@types/node-fetch": "^2.6.1",
"@types/react": "^18.0.12",
"@types/react-dom": "^18.0.5",
"@typescript-eslint/eslint-plugin": "^6.18.1",
Expand Down
4 changes: 0 additions & 4 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ import {
} from './types.js';
import { State, Client } from 'ketting';
import { Context } from '@curveball/kernel';
import * as nodeFetch from 'node-fetch';

// @ts-expect-error Signatures aren't 100% identical
if (!global.Request) global.Request = nodeFetch.Request;

/**
* Returns the list of links for a section.
Expand Down
1 change: 0 additions & 1 deletion util/fetch-link-relation-data.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { JSDOM } from 'jsdom';
import fetch from 'node-fetch';
import { writeFileSync } from 'node:fs';

const response = await fetch('https://www.iana.org/assignments/link-relations/link-relations.xml');
Expand Down

0 comments on commit 39ed2ab

Please sign in to comment.