NH_base

Base library usable any time.

Seznam verzí skriptu, při kterých došlo ke změnám v kódu. Zobrazit všechny verze.

  • v74 26. 07. 2026

    JSDoc: Swap lines to quiet warnings.

    Issue #369.

  • v74 25. 07. 2026

    JSDoc: Rework to use @namespace rather than @module.

    This seems to fit the library design better.

    The demos are explicitly kept as a module.

    Issue #369.

  • v74 23. 07. 2026

    JSDoc: Add/update file stanzas to all lib and demo files.

    Issue #369.

  • v74 21. 07. 2026

    Retire sha256().

    Closes #357.

  • v73 20. 07. 2026

    JSDoc: Improve examples and typedefs for Dispatcher.

    Issue #369.

    JSDoc: Improve documentation for events in Service.

    And remove a now redundant paragraph.

    Issue #369.

  • v73 19. 07. 2026

    JSDoc: Fix all known issues for lib/base.

    Issue #369.

    Bump version number.

  • v72 07. 07. 2026

    Enhance Service to allow resetting the short name.

    Closes #365.

    Bump version number.

  • v71 30. 06. 2026

    Swap out implementation for strHash() and deprecate sha256().

    Issue #357.

  • v70 28. 06. 2026

    Implement a sha256() convenience wrapper.

    Issue #357.

  • v69 19. 06. 2026

    Remove deprecated enhancement to .get().

    Issue #335.

    Bump version number.

  • v68 18. 06. 2026

    Retire last library specific exception.

    Issue #254.

  • v67 14. 06. 2026

    Migrate exception MinVersionError to using Error with cause.

    Issue #254.

    Bump version number.

  • v66 12. 06. 2026

    Migrate exception EventTypeError to using Error with cause.

    Issue #254.

    Bump version number.

  • v65 08. 06. 2026

    Fix a typo in the Logger example and other improvements.

    Bump version number.

  • v64 04. 06. 2026

    Fire config change events on more settings.

    Issue #331.

    Mark the extra args parameter to DefaultMap.get() as deprecated.

    Issue #335.

  • v63 02. 06. 2026

    Migrate uses of .get() to .getWithArguments() as appropriate.

    Issue #335.

    Bump version number.

  • v62 01. 06. 2026

    Document Logger's new configuration dispatcher.

    Issue #331.

    Implement DefaultMap.getWithArguments().

    Issue #335.

    Bump version number.

  • v61 28. 05. 2026

    Have the group stack always contain at least one element.

    This simplifies some other code.

    Issue #331.

    Implement support for a configuration change listener.

    The API change became larger than anticipated due to the need to disable messagings generated during loading configs as well as testing. Complicated by the desire to not directly expose the Dispatcher, additional wrappers were needed.

    Closes #331.

    Bump version number.

  • v60 27. 05. 2026

    Add an enabled feature to Dispatcher.

    Closes #336.

    Bump version number.

  • v59 25. 05. 2026

    Migrate first custom exception to Error with cause.

    Issue #254.

    Bump version number.

  • v58 23. 05. 2026

    Update to latest xunit and migrate to TestCase.register().

    Closes #333.

    Bump version number.

  • v57 19. 05. 2026

    Port Google's Canonical Error Codes.

    Issue #254.

    Update docstrings.

  • v56 18. 05. 2026

    Improve testing with additional exceptions types.

    Issue #254.

    Fix typo in docstring.

    Move Dispatcher initialization for consistency.

    Bump version number.

  • v55 18. 04. 2026

    eslint: Fully disallow name as a local variable.

    Closes #238.

    Grammar fix.

    Bump version number.

  • v54 01. 04. 2026

    Update a few doc strings.

    eslint: Use the ONE_ITEM constant where appropriate.

    eslint: Allow the use of unary operators in for-loops.

    Had been hidden by the use of += 1.

    Shorten a type name since it is already in a namespace.

    Stop shadowing the global name.

    Unsure if the property in Version should be changed.

    Issue #238.

    eslint: Introduce a LAST_ITEM constant.

    After this, there would only be a single instance of -1 in the code base.

    Bump version number.

  • v53 31. 03. 2026

    Run through ispell.

    Bump version number.

  • v52 25. 02. 2024

    Implement base Exception class that will use the name of the class.

    When exception types inherit from Error, the name property sticks with the string "Error", making logs less useful.

    Issue #259.

    Bump version number.

  • v51 14. 02. 2024

    Stop using event as a local name as it shadows a global.

    Issue #238.

    Bump version number.

  • v50 12. 02. 2024

    Migrate Service to lib/base.

    Issue #167.

    Bump version number.

  • v49 08. 02. 2024

    Normalize vertical white space around logging {intro,outro}s.

    Closes #243.

    Bump version number.

  • v48 09. 01. 2024

    JSDoc: Correct @typedef

    Bump version number.

  • v47 06. 01. 2024

    Call a real console method to generate a stack trace.

    Closes #226.

    Bump version number.

  • v46 02. 01. 2024

    Minor tweak to wording in error message.

    Bump version number.

  • v45 19. 12. 2023

    Migrate asserts to using supported new constructs.

    Issue #183.

    Support chaining with Dispatcher.{on,off,fire}().

    Closes #207.

    Bump version number.

  • v44 14. 12. 2023

    Add descriptive text to some assertions.

    Issue #215.

    Bump version number.

  • v43 08. 12. 2023

    Add descriptive text to the assertEqual() in a loop.

    Issue #215.

    Bump version number.

  • v42 05. 12. 2023

    Update exports and documentation to match current file order.

    Promote ONE_ITEM to a global constant.

    Issue #216.

    Bump version number.

  • v41 04. 12. 2023

    Make use of new TestCase features in testing.

    Issue #183.

    Bump version number.

  • v40 02. 12. 2023

    Wrap call to console.error() with a MessageQueue.

    Just to make it easier to test.

    Issue #210.

    Replace a loop around a push() with the spread syntax.

    Bump version number.

  • v39 01. 12. 2023

    Move MessageQueue and friends higher in the file.

    Issue #210.

    Bump version number.

  • v38 29. 11. 2023

    Move Dispatcher higher in the file and write tests.

    Issue #210.

    Bump version number.

  • v37 26. 11. 2023

    Update comment now that we have a plan.

    Issue #210.

    Bump version number.

  • v36 24. 11. 2023

    Implement a simple message queuing system, MessageQueue.

    Issue #205.

    Expose a common issue collection for libraries and apps.

    Issue #205.

    Bump version number.

  • v35 22. 11. 2023

    eslint: Deal with some upcoming tweaks to newline-per-chained-call.

    Issue #203.

    Bump version number.

  • v34 18. 11. 2023

    Retire NH.xunit.testing.log and replace with local Logger.

    Issue #179.

    style-nudge: Right place nested classes in Logger.

    Issue #197.

    Bump version number.

  • v33 16. 11. 2023

    Use the new TestResult.summary() feature.

    Issue #200.

    Retire now unused doFunctionTests().

    Issue #179.

    Bump version number.

  • v32 15. 11. 2023

    Rewrite testLogger() as a TestCase.

    Issue #179.

    Bump version number.

  • v31 14. 11. 2023

    Rewrite Logger.#testGroupMode() as a TestCase.

    Issue #179.

    Bump version number.

  • v30 13. 11. 2023

    Only reset Logger instances that have configs when restored.

    Closes #199.

    Add some vertical whitespace.

    Rewrite testSafeId() as a TestCase.

    Issue #179.

    Bump version number.

  • v29 12. 11. 2023

    Rewrite testDefaultMap() as a TestCase.

    Issue #179.

    Bump version number.

Zobrazit všechny verze skriptu