Skip to content

Releases: actionhero/actionhero

v27.0.0

13 Aug 18:46
Compare
Choose a tag to compare

Spec Helper Type changes

It's now much easier to get the types of your response from specHelper.runAction<Action>() and specHelper.runTask<Task>()!

Just provide your Action or Task Class!

// In `__tests__/actions/randomNumber.ts`
import { Process, specHelper } from "actionhero";
import { RandomNumber } from "../../src/actions/randomNumber";

describe("Action: randomNumber", () => {
  const actionhero = new Process();
  beforeAll(async () => await actionhero.start());
  afterAll(async () => await actionhero.stop());

  test("generates random numbers", async () => {
    // now "randomNumber" is typed properly as a number
    const { randomNumber } = await specHelper.runAction<RandomNumber>(
      "randomNumber"
    );
    expect(randomNumber).toBeGreaterThan(0);
    expect(randomNumber).toBeLessThan(1);
  });
});

Version 27 also removed i18n and uglify from Actionhero

Localization Removal

  1. Remove any /locales/* files you have, and move that text content into your Actions and Tasks
  2. Remove any instances if connection.localize() in your code - this method is removed

Configuration

  1. In src/config/api.ts:
    • Add config.general.welcomeMessage = 'Welcome to the Actionhero API!' or similar message
    • Remove config.general.paths.locale
  2. In src/config/errors.ts:
    • Remove all instances of data.connection.localize and use regular JS strings

Minified Websocket Client Library Removed

ActionheroWebsocketClient.min.js will no longer be generated in your Actionhero projects. Most users include /public/javascript/ActionheroWebsocketClient.js in their build and it is compiled into their react or angular project... or cached and minified by their CDN. Minifiying this client-side javascript is now outside of the scope of Actionhero.

v26.1.3

02 Aug 01:45
Compare
Choose a tag to compare

Update dependencies, including support for ws@v8

v26.1.2

23 Jul 22:32
Compare
Choose a tag to compare
  • Prevent redis publish when disconnected (#1889)
  • Update dependencies

v26.1.1

13 Jul 23:30
Compare
Choose a tag to compare

Update Dependencies

v26.1.0

30 Jun 15:51
Compare
Choose a tag to compare
  • Action Logging Improvements to aid 404 debugging (#1870)
  • Update Dependencies

v26.0.9

24 Jun 16:18
Compare
Choose a tag to compare
  • Log "ensuring the existence of the chatRoom" in debug level (#1861)
  • Update dependencies (#1863)

v26.0.8

12 Jun 04:44
Compare
Choose a tag to compare
  • If there is no error.stack, use the error message (#1854)

v26.0.7

11 Jun 17:01
Compare
Choose a tag to compare
  • Update node-resque (#1851) (and other deps)
  • Remove AsyncWaterfall (#1852)
  • Better tyes for ExceptionReporter & use throughout (#1853)

v26.0.6

01 Jun 17:21
Compare
Choose a tag to compare
  • Update dependencies (#1841)

v26.0.5

31 May 23:35
Compare
Choose a tag to compare
  • Update Dependencies