diff --git a/CHANGELOG.md b/CHANGELOG.md index af8a1e32f..de74a97af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ This changelog covers all three packages, as they are (for now) updated as a whole +## v0.29.0 + +- Add authentication: sign requests, so the server knows who sent it. This allows for better authorization. #108 +- Refactor Error type, improve Error page / views +- Automatically retry unauthorized resources (but I want a prettier solution, see #110) +- `useResource` no longer returns an array, but only the resource. +- Improved EndpointPage (show results, useful for Search, for example) + ## v0.28.2 - Added server-side full text search #106 diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md index 041a38fe8..6d6c98c88 100644 --- a/CONTRIBUTE.md +++ b/CONTRIBUTE.md @@ -8,7 +8,6 @@ And join our [Discord][discord-url]! ## Publishing -- Install `lerna` - `yarn lint-fix` - `yarn build` to build typescript files (don't skip this!) - `yarn test` (don't you publish a broken build!), make sure `atomic-server` is running on `localhost`. diff --git a/README.md b/README.md index e956a4347..229c2472f 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,9 @@ https://user-images.githubusercontent.com/2183313/139728539-d69b899f-6f9b-44cb-a ```sh # To run, simply run the following commands: -yarn -yarn start +yarn # install dependencies +yarn bootstrap # symlink ./lib and ./react to ./data-browser +yarn start # run the server! ``` [→ Read more](data-browser/README.md) diff --git a/data-browser/package.json b/data-browser/package.json index a7fe7085f..fcdf4d807 100644 --- a/data-browser/package.json +++ b/data-browser/package.json @@ -48,7 +48,8 @@ "lint-staged": "^10.5.4", "pretty-quick": "^3.1.0", "snowpack": "^3.8.8", - "typescript": "^4.2.4" + "typescript": "^4.2.4", + "workbox-cli": "^6.4.1" }, "homepage": "https://joepio.github.io/atomic-data-browser/", "husky": { @@ -64,7 +65,7 @@ "url": "https://github.com/joepio/atomic-data-browser/" }, "scripts": { - "build": "snowpack build", + "build": "snowpack build && workbox generateSW workbox-config.js", "deploy": "gh-pages -d build", "lint": "eslint ./src --ext .js,.jsx,.ts,.tsx", "lint-fix": "eslint ./src --ext .js,.jsx,.ts,.tsx --fix", diff --git a/data-browser/public/index.html b/data-browser/public/index.html index e0f8b5d92..b655a9c88 100644 --- a/data-browser/public/index.html +++ b/data-browser/public/index.html @@ -19,6 +19,16 @@ href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">