From 7aa914ab3fd3faeacd511860d555de067ca5fe18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tao=20Bror=20Bojl=C3=A9n?= Date: Sat, 20 Jul 2019 13:01:56 +0300 Subject: [PATCH] prepare for 2.0.0 release --- BILL-OF-MATERIALS.md | 13 ++++++------- CHANGELOG | 18 ------------------ CHANGELOG.md | 34 ++++++++++++++++++++++++++++++++++ backend/lib/backend/api.ex | 2 +- backend/mix.exs | 2 +- frontend/package.json | 2 +- 6 files changed, 43 insertions(+), 28 deletions(-) delete mode 100644 CHANGELOG create mode 100644 CHANGELOG.md diff --git a/BILL-OF-MATERIALS.md b/BILL-OF-MATERIALS.md index 0b3435c..f138d03 100644 --- a/BILL-OF-MATERIALS.md +++ b/BILL-OF-MATERIALS.md @@ -1,32 +1,31 @@ # Software Bill of Materials This is an overview of the external software components (libraries, etc.) that -are used in fediverse.space, or that are likely to be used. +are used in fediverse.space. ## Backend - -I am currently in the process of migrating from a Python and Django-based -backend to one written in Elixir. This list is what *will* be used in the near -future. ### Crawler and API * [Elixir](https://elixir-lang.org/) (the language) * [Phoenix](https://phoenixframework.org/) (the web framework) -* [HTTPoison](https://hexdocs.pm/httpoison/readme.html) (for crawling servers) * See [/backend/mix.env](/backend/mix.env) for a complete overview of dependencies ### Graph layout +* Java (the language) +* Gradle (to build) * [Gephi toolkit](https://gephi.org/toolkit/) ## Frontend * [React](https://reactjs.org/) (the UI framework) * [Blueprint](https://blueprintjs.com/) (a collection of pre-existing UI components) -* [Sigma.js](http://sigmajs.org/) (for graph visualization) +* [Cytoscape.js](http://js.cytoscape.org/) (for graph visualization) * See [/frontend/package.json](/frontend/package.json) for a complete overview of dependencies ## Other * [Docker](https://www.docker.com/) and [docker-compose](https://docs.docker.com/compose/overview/) +* The backend is deployed using [Dokku](http://dokku.viewdocs.io/dokku/). * The frontend is hosted on [Netlify](https://www.netlify.com/) +* [GitLab](https://gitlab.com/) and GitLab CI/CD are used for project management and CI/CD. diff --git a/CHANGELOG b/CHANGELOG deleted file mode 100644 index 9dade06..0000000 --- a/CHANGELOG +++ /dev/null @@ -1,18 +0,0 @@ -# Changelog -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [Unreleased] -### Added -### Changed -### Deprecated -### Removed -### Fixed -### Security - -## [1.0.0] - 2018-09-01 -### Added -- Initial release. The date above is inaccurate; this first version was released sometime in the fall of 2018. -- This release had a Django backend and a [Sigma.js](http://sigmajs.org/) graph. \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..dd99a14 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,34 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] +### Added +### Changed +### Deprecated +### Removed +### Fixed +### Security + +## [2.0.0] - 2019-07-20 +### Added +- The backend has been completely rewritten in Elixir for improved stability and performance. +- An "insularity score" was added to show the percentage of mentions to users on the same instance. +- The crawler now respects robots.txt. +### Changed +- Migrated the frontend graph from Sigma.js to Cytoscape.js. +- To improve performance, instances with no neighbors are no longer shown on the graph. +### Deprecated +- The /api/v1 endpoint no longer exists; now there's a new /api. +### Removed +### Fixed +### Security +- Spam domains can be blacklisted in the backend crawler's config. +- Add basic automated security scanning (using [Sobelow](https://github.com/andmarti1424/sc-im.git) and Gitlab's dependency scanning). + +## [1.0.0] - 2018-09-01 +### Added +- Initial release. The date above is inaccurate; this first version was released sometime in the fall of 2018. +- This release had a Django backend and a [Sigma.js](http://sigmajs.org/) graph. diff --git a/backend/lib/backend/api.ex b/backend/lib/backend/api.ex index c1d86df..860c1a5 100644 --- a/backend/lib/backend/api.ex +++ b/backend/lib/backend/api.ex @@ -1,5 +1,5 @@ defmodule Backend.Api do - alias Backend.{Crawl, Edge, Instance, Repo} + alias Backend.{Edge, Instance, Repo} import Backend.Util import Ecto.Query diff --git a/backend/mix.exs b/backend/mix.exs index 7e6f334..2298eca 100644 --- a/backend/mix.exs +++ b/backend/mix.exs @@ -4,7 +4,7 @@ defmodule Backend.MixProject do def project do [ app: :backend, - version: "2.0.0-beta.1", + version: "2.0.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), diff --git a/frontend/package.json b/frontend/package.json index b44341c..dc9fcb2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "0.1.0", + "version": "2.0.0", "private": true, "scripts": { "start": "NODE_ENV=development react-scripts start",