Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: helpers/handlebars-helpers
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: Budibase/handlebars-helpers
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Jan 30, 2021

  1. Copy the full SHA
    43fec8d View commit details
  2. Removing lazy-cache, removing the utils file that breaks rollup and r…

    …eplacing with standard requires everywhere.
    mike12345567 committed Jan 30, 2021
    Copy the full SHA
    418a73b View commit details

Commits on Jan 31, 2021

  1. Copy the full SHA
    203803a View commit details

Commits on Feb 1, 2021

  1. Copy the full SHA
    e7c22bf View commit details
  2. Incrementing version.

    mike12345567 committed Feb 1, 2021
    Copy the full SHA
    f12af59 View commit details

Commits on Feb 2, 2021

  1. array examples

    Martin McKeaveney committed Feb 2, 2021
    Copy the full SHA
    a9d3dba View commit details
  2. number done

    Martin McKeaveney committed Feb 2, 2021
    Copy the full SHA
    5b6e5a9 View commit details
  3. maths

    Martin McKeaveney committed Feb 2, 2021
    Copy the full SHA
    378d554 View commit details
  4. url done

    Martin McKeaveney committed Feb 2, 2021
    Copy the full SHA
    965bd67 View commit details
  5. regex done

    Martin McKeaveney committed Feb 2, 2021
    Copy the full SHA
    7fbe93a View commit details
  6. string done

    Martin McKeaveney committed Feb 2, 2021
    Copy the full SHA
    fb6205d View commit details
  7. comparisons

    Martin McKeaveney committed Feb 2, 2021
    Copy the full SHA
    2899de9 View commit details
  8. fix comment

    Martin McKeaveney committed Feb 2, 2021
    Copy the full SHA
    db7c4fe View commit details
  9. 0.11.2

    Martin McKeaveney committed Feb 2, 2021
    Copy the full SHA
    63267d2 View commit details
  10. Merge pull request #1 from Budibase/examples

    Examples
    shogunpurple authored Feb 2, 2021
    Copy the full SHA
    29edbe0 View commit details
  11. 0.11.3

    Martin McKeaveney committed Feb 2, 2021
    Copy the full SHA
    782aa90 View commit details

Commits on May 16, 2021

  1. Updated most packages without breaking code or modifying tests. Updat…

    …ed linting and test to use package.json scripts. Added yarn lint and nodejs aray in github actions.
    andrew authored and andrew committed May 16, 2021
    Copy the full SHA
    7b010d7 View commit details
  2. Bumped min node required to 10.12.0 due to package dependencies.

    andrew authored and andrew committed May 16, 2021
    Copy the full SHA
    2cf5b71 View commit details
  3. Added timeout for github actions.

    andrew authored and andrew committed May 16, 2021
    Copy the full SHA
    462944b View commit details

Commits on May 17, 2021

  1. Added os matrix for github actions and badges in readme.md

    andrew authored and andrew committed May 17, 2021
    Copy the full SHA
    f19ae7a View commit details
  2. Only publish if not a PR.

    andrew authored and andrew committed May 17, 2021
    Copy the full SHA
    da9acde View commit details
  3. Only publish on release event

    andrew authored and andrew committed May 17, 2021
    Copy the full SHA
    8917e23 View commit details
  4. Update github actions for github master renamed to main and for when …

    …showing 40ants badge.
    andrew authored and andrew committed May 17, 2021
    Copy the full SHA
    c66e909 View commit details

Commits on Jun 10, 2021

  1. Updating length operator to have a little more intelligence allowing …

    …the use of inline arrays.
    mike12345567 committed Jun 10, 2021
    Copy the full SHA
    1603aac View commit details
  2. Merge pull request #3 from Budibase/fix/length-op

    Updating length operator and examples
    Michael Drury authored Jun 10, 2021
    Copy the full SHA
    a899446 View commit details
  3. 0.11.4

    mike12345567 committed Jun 10, 2021
    Copy the full SHA
    77a3b97 View commit details
  4. Copy the full SHA
    2d55052 View commit details

Commits on Jun 11, 2021

  1. Fix merge array length param name stuff up.

    andrew authored and andrew committed Jun 11, 2021
    Copy the full SHA
    04d3986 View commit details
  2. Merge pull request #2 from acotty/master

    Dependency updates and add lint & test to pakcage script.
    Michael Drury authored Jun 11, 2021
    Copy the full SHA
    414ad12 View commit details

Commits on Jun 29, 2021

  1. Removing the use of the logging utilities directly from codebase, the…

    …se were likely pulling in ansi-colors and log-utils which broke rollup build.
    mike12345567 committed Jun 29, 2021
    Copy the full SHA
    7f7c6af View commit details

Commits on Sep 20, 2021

  1. Copy the full SHA
    4a3f2c7 View commit details
  2. Merge pull request #4 from Budibase/fix_example_avg_helper

    fix example code for avg helper
    mike12345567 authored Sep 20, 2021
    Copy the full SHA
    edac2a0 View commit details
  3. Copy the full SHA
    1d107cb View commit details

Commits on Sep 21, 2021

  1. Bumping version.

    mike12345567 committed Sep 21, 2021
    Copy the full SHA
    7258ea3 View commit details

Commits on Oct 7, 2021

  1. Copy the full SHA
    8f98116 View commit details
  2. bumping version.

    mike12345567 committed Oct 7, 2021
    Copy the full SHA
    3384005 View commit details

Commits on Oct 16, 2021

  1. Copy the full SHA
    b46b83c View commit details

Commits on Jan 12, 2022

  1. Some minor tweaks.

    mike12345567 committed Jan 12, 2022
    Copy the full SHA
    3c05692 View commit details
  2. Copy the full SHA
    3725026 View commit details

Commits on Jan 31, 2022

  1. Copy the full SHA
    7243aa2 View commit details
  2. v0.11.8

    mike12345567 committed Jan 31, 2022
    Copy the full SHA
    c4dd7ae View commit details
  3. Linting fix.

    mike12345567 committed Jan 31, 2022
    Copy the full SHA
    5ba93f5 View commit details

Commits on Oct 13, 2022

  1. Copy the full SHA
    16b7dee View commit details

Commits on Jan 11, 2023

  1. Copy the full SHA
    c3ffbdf View commit details

Commits on May 9, 2023

  1. Merge pull request #7 from connorskees/feat/unused-deps

    remove unused dependencies
    mike12345567 authored May 9, 2023
    Copy the full SHA
    5f939b0 View commit details
  2. Merge pull request #6 from davidpfahler/patch-1

    fix(README): fix incorrect syntax for ellipsis length argument
    mike12345567 authored May 9, 2023
    Copy the full SHA
    8851589 View commit details
  3. Merge pull request #5 from Sly777/patch-1

    Updated commands on installation
    mike12345567 authored May 9, 2023
    Copy the full SHA
    9a15565 View commit details

Commits on Jun 21, 2023

  1. Copy the full SHA
    8c40ab8 View commit details
  2. Copy the full SHA
    5594282 View commit details

Commits on Jun 23, 2023

  1. Merge pull request #8 from ConorWebb96/master

    Minor amends - removed duplicated helpers
    mike12345567 authored Jun 23, 2023
    Copy the full SHA
    0cb05c7 View commit details
Showing with 10,018 additions and 1,450 deletions.
  1. +0 −14 .editorconfig
  2. +9 −1 .eslintrc.json
  3. +18 −0 .github/stale.yml
  4. +59 −0 .github/workflows/helpers_ci.yml
  5. +0 −1 .gitignore
  6. +4 −0 .mocharc.json
  7. +0 −17 .travis.yml
  8. +0 −9 .verb.md
  9. +6 −0 CHANGELOG
  10. +13 −380 README.md
  11. +0 −27 appveyor.yml
  12. +0 −143 bower.json
  13. +0 −28 gulpfile.js
  14. +11 −11 index.js
  15. +310 −186 lib/array.js
  16. +7 −6 lib/code.js
  17. +1 −1 lib/collection.js
  18. +59 −19 lib/comparison.js
  19. +0 −24 lib/date.js
  20. +10 −8 lib/fs.js
  21. +11 −11 lib/html.js
  22. +4 −4 lib/i18n.js
  23. +5 −5 lib/index.js
  24. +11 −11 lib/inflection.js
  25. +0 −8 lib/logging.js
  26. +3 −0 lib/lorem.js
  27. +0 −55 lib/markdown.js
  28. +7 −7 lib/match.js
  29. +40 −40 lib/math.js
  30. +23 −8 lib/misc.js
  31. +20 −13 lib/number.js
  32. +19 −14 lib/object.js
  33. +21 −21 lib/path.js
  34. +10 −8 lib/regex.js
  35. +141 −77 lib/string.js
  36. +10 −19 lib/url.js
  37. +23 −0 lib/utils/createFrame.js
  38. +39 −0 lib/utils/falsey.js
  39. +40 −0 lib/utils/fn.js
  40. +275 −0 lib/utils/handlebarsUtils.js
  41. +1 −1 lib/utils/html.js
  42. +31 −0 lib/utils/identity.js
  43. +9 −18 lib/utils/index.js
  44. +22 −0 lib/utils/indexOf.js
  45. +41 −0 lib/utils/inverse.js
  46. +38 −0 lib/utils/isBlock.js
  47. +33 −0 lib/utils/isObject.js
  48. +34 −0 lib/utils/isOptions.js
  49. +23 −0 lib/utils/isString.js
  50. +34 −0 lib/utils/isUndefined.js
  51. +15 −0 lib/utils/odd.js
  52. +50 −0 lib/utils/options.js
  53. +35 −0 lib/utils/result.js
  54. +0 −41 lib/utils/utils.js
  55. +46 −0 lib/utils/value.js
  56. +14 −0 lib/uuid.js
  57. +32 −48 package.json
  58. +13 −6 test/array.js
  59. +132 −0 test/examples/index.js
  60. +0 −129 test/fs.js
  61. +0 −26 test/markdown.js
  62. +3 −3 test/match.js
  63. +1 −1 test/path.js
  64. +68 −1 test/string.js
  65. +13 −0 test/uuid.js
  66. +8,121 −0 yarn.lock
14 changes: 0 additions & 14 deletions .editorconfig

This file was deleted.

10 changes: 9 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -107,7 +107,15 @@
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"space-unary-ops": [
2, {
"words": true,
"nonwords": false,
"overrides": {
"typeof": false
}
}
],
"spaced-comment": [0, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }],
"use-isnan": 2,
"valid-typeof": 2,
18 changes: 18 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
- roadmap
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
59 changes: 59 additions & 0 deletions .github/workflows/helpers_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Handlebars-helpers CI

on:
# Trigger the workflow on push or pull request,
# but only for the master branch (or main)
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
release:
types:
- created
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build-and-test:

runs-on: ${{ matrix.os }}

timeout-minutes: 30 # Just in case something goes realy real realy BAD.....

strategy:
fail-fast: false
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x, 20.x]
os: [ubuntu-20.04, windows-2019]

steps:
- name: Checkout GITHub code
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn install --frozen-lockfile # will run `yarn install --frozen-lockfile` command

- name: Lint code
run: yarn lint

- name: Run tests against code
run: yarn test
env:
CI: true
name: Handlebars-helpers CI

- name: Publish to NPM only on a relase event
if: github.event_name == 'release' && github.event.action == 'created'
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ node_modules
npm-debug.log

# yarn
yarn.lock
yarn-error.log

# misc
4 changes: 4 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extension": ["js"],
"spec": "test/**/*.js"
}
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .verb.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
## Browser usage

See how to [use handlebars-helpers in the browser](https://github.com/doowb/handlebars-helpers-browserify-example).

## Usage

The main export returns a function that needs to be called to expose the object of helpers.
@@ -67,9 +63,4 @@ The following utils are exposed on `.utils`.

***


[operators]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators

## History

{%= changelog(yaml(read("CHANGELOG"))) %}
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v0.11.0:
date: "2023-06-21"
changes:
- removed `times` from math helpers
- removed alias `url_encode` and `url_decode` from URL helpers
- fixed decodeURI example, it was a using escape and had the example for encodeURI
v0.10.0:
date: "2017-11-17"
changes:
Loading