hirefire-resource 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1 +1,7 @@
1
- No changes since release yet.
1
+ ## HEAD
2
+
3
+ - Add support for dashes in `Worker` names to match the Procfile process naming format. `Worker` is implicitly used when configuring HireFire using the `Configuration#dyno` method.
4
+
5
+ ## v1.0.0
6
+
7
+ - Initial release.
package/README.md CHANGED
@@ -31,7 +31,7 @@ For more information, visit our [home page][HireFire].
31
31
 
32
32
  ## Release
33
33
 
34
- 1. Update the version in `package.json` using `npm version <patch|minor|major>`.
34
+ 1. Update the version in `package.json` using `npm version <patch|minor|major> --no-git-tag-version`.
35
35
  2. Ensure that `CHANGELOG.md` is up-to-date.
36
36
  3. Commit changes with `git commit`.
37
37
  4. Create a `git tag` matching the new version (e.g., `v1.0.0`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hirefire-resource",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "HireFire integration library for Node.js applications",
5
5
  "keywords": [
6
6
  "hirefire",
package/src/worker.js CHANGED
@@ -13,7 +13,7 @@ class MissingDynoFnError extends Error {
13
13
  }
14
14
 
15
15
  class Worker {
16
- static PROCESS_NAME_PATTERN = /^[a-zA-Z][a-zA-Z0-9_]{0,29}$/
16
+ static PROCESS_NAME_PATTERN = /^[a-zA-Z][a-zA-Z0-9_-]{0,29}$/
17
17
 
18
18
  constructor(name, fn) {
19
19
  this._validate(name, fn)