actionhero

Actionhero is a realtime multi-transport nodejs API Server with integrated cluster capabilities and delayed tasks

APACHE-2.0 License

Downloads
14.5K
Stars
2.4K
Committers
127

Bot releases are hidden (Show)

actionhero - v28.0.0-alpha.0

Published by evantahler almost 3 years ago

What's Changed

Full Changelog: https://github.com/actionhero/actionhero/compare/v27.3.0...v28.0.0-alpha.0

actionhero - v27.2.1

Published by evantahler almost 3 years ago

  • specHelper runAction, runTask, and runFullTask generic type variable can be optional #2004
  • Update Dependencies
actionhero - v27.2.0

Published by evantahler almost 3 years ago

  • Chat middleware can squelch messages #2002
  • Update Dependencies
actionhero - v27.1.5

Published by evantahler about 3 years ago

  • Clarify that flag CLI opts require a letter (#1975)
  • Update to commander v8 (#1977)
  • Update Dependencies
actionhero - v27.1.4

Published by evantahler about 3 years ago

  • Do not throw on race-condition when creating client JS directory (#1966)
actionhero - v27.1.3

Published by evantahler about 3 years ago

  • Fix the storage and retrieval of chatRoom member details (#1964)
  • Update dependencies
actionhero - v27.1.2

Published by evantahler about 3 years ago

  • Rename LogLevels to ActionheroLogLevel and export (#1957)
actionhero - v27.1.1

Published by evantahler about 3 years ago

  • Better shutdown behavior (#1956)
  • Move ioredis-mock to devDependency (#1950)
actionhero - v21.1.0

Published by evantahler about 3 years ago

  • Added types for the loglevel (#1945)
  • Update dependencies
actionhero - v27.0.3

Published by evantahler about 3 years ago

  • Show process errors with console.error if exceptionHandlers are not yet ready #1936
  • Remove i18n files from generator #1935
actionhero - v27.0.2

Published by evantahler about 3 years ago

  • Use process.env.LOG_LEVEL to set log level by default (#1931)
  • Update Dependencies
actionhero - v27.0.1

Published by evantahler about 3 years ago

  • Support loading task as default file export #1925
  • Implement task.delByFunction() #1924
  • Clarify example and type of task middleware preEnqueue method #1921
  • Do not log resque multiWorker checks if MIN and MAX workers are equal #1920
  • Use package name in welcome message #1918
  • Update Dependenceis
actionhero - v27.0.0

Published by evantahler about 3 years ago

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.

actionhero - v26.1.3

Published by evantahler about 3 years ago

Update dependencies, including support for ws@v8

actionhero - v26.1.2

Published by evantahler about 3 years ago

  • Prevent redis publish when disconnected (#1889)
  • Update dependencies
actionhero - v26.1.1

Published by evantahler over 3 years ago

Update Dependencies

actionhero - v26.1.0

Published by evantahler over 3 years ago

  • Action Logging Improvements to aid 404 debugging (#1870)
  • Update Dependencies
actionhero - v26.0.9

Published by evantahler over 3 years ago

  • Log "ensuring the existence of the chatRoom" in debug level (#1861)
  • Update dependencies (#1863)
actionhero - v26.0.8

Published by evantahler over 3 years ago

  • If there is no error.stack, use the error message (#1854)
actionhero - v26.0.7

Published by evantahler over 3 years ago

  • Update node-resque (#1851) (and other deps)
  • Remove AsyncWaterfall (#1852)
  • Better tyes for ExceptionReporter & use throughout (#1853)