Skip to content

Latest commit

 

History

History
77 lines (47 loc) · 2.39 KB

CHANGELOG.md

File metadata and controls

77 lines (47 loc) · 2.39 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[3.0.0] - 2023-05-29

Added

  • Git commands for Windows users, to fix issues with different newline formats (see README.md).

Changed

  • Changed default ports configuration to 3000 for frontend and 6000 for backend. Thanks to Loris Chastanet.

  • Breaking change: removed cutomized alias for imports in frontend.

Fixed

  • Moved vite and @vitejs/plugin-react as regular dependencies in frontend, and fixed imports in config. Thanks to Pierre Paillard.

Open an issue if you have any request/feedback :)

[2.0.1] - 2023-03-24

Changed

  • Removed useless code in package.json files.

[2.0.0] - 2023-02-10

Added

  • Deployment workflows using CapRover. Thanks to Anthony Gorski.
  • Compatibility with npm alternatives (yarn, pnpm...). Set config.cli in root package.json with the wanted value.

Changed

  • Allowed usage console.info in ESLint configuration (front and back).

  • Bumped dependencies versions. Thanks to Valentin Dupin.

  • Cleaned backend/src/app.js and removed public index.html file to avoid conflicts when serving react build.

  • Breaking change: removed setup script: npm install (or any other alternative) triggers a postinstall script.

  • Breaking change: removed models "autoloading": now managers should be instantiated manually in backend/src/models/index.js.

For example, given you created a FooManager.js file to be associated with a foo table, you should add to index, after const models = {} statement:

const FooManager = require("./FooManager");

models.foo = new FooManager();
models.foo.setDatabase(pool);
  • Breaking change: renamed connection property of managers as database to be consistent with quests.

Managers methods should be fixed from:

findAll() {
  return this.connection.query(`select * from  ${this.table}`);
}

To:

findAll() {
  return this.database.query(`select * from  ${this.table}`);
}