Skip to content

Changes argument in Lorem to optional #434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 159 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
43fec8d
Starting to modify, removed lazy cache from array.
mike12345567 Jan 30, 2021
418a73b
Removing lazy-cache, removing the utils file that breaks rollup and r…
mike12345567 Jan 30, 2021
203803a
Updating package so that action runs to test and publish package on a…
mike12345567 Jan 31, 2021
e7c22bf
Removing use of create-frame as this also made use of lazy cache.
mike12345567 Feb 1, 2021
f12af59
Incrementing version.
mike12345567 Feb 1, 2021
a9d3dba
array examples
Feb 2, 2021
5b6e5a9
number done
Feb 2, 2021
378d554
maths
Feb 2, 2021
965bd67
url done
Feb 2, 2021
7fbe93a
regex done
Feb 2, 2021
fb6205d
string done
Feb 2, 2021
2899de9
comparisons
Feb 2, 2021
db7c4fe
fix comment
Feb 2, 2021
63267d2
0.11.2
Feb 2, 2021
29edbe0
Merge pull request #1 from Budibase/examples
shogunpurple Feb 2, 2021
782aa90
0.11.3
Feb 2, 2021
7b010d7
Updated most packages without breaking code or modifying tests. Updat…
May 16, 2021
2cf5b71
Bumped min node required to 10.12.0 due to package dependencies.
May 16, 2021
462944b
Added timeout for github actions.
May 16, 2021
f19ae7a
Added os matrix for github actions and badges in readme.md
May 17, 2021
da9acde
Only publish if not a PR.
May 17, 2021
8917e23
Only publish on release event
May 17, 2021
c66e909
Update github actions for github master renamed to main and for when …
May 17, 2021
1603aac
Updating length operator to have a little more intelligence allowing …
mike12345567 Jun 10, 2021
a899446
Merge pull request #3 from Budibase/fix/length-op
Jun 10, 2021
77a3b97
0.11.4
mike12345567 Jun 10, 2021
2d55052
Merge branch 'master' into master
acotty Jun 10, 2021
04d3986
Fix merge array length param name stuff up.
Jun 11, 2021
414ad12
Merge pull request #2 from acotty/master
Jun 11, 2021
7f7c6af
Removing the use of the logging utilities directly from codebase, the…
mike12345567 Jun 29, 2021
4a3f2c7
fix example code for avg helper
mslourens Sep 20, 2021
edac2a0
Merge pull request #4 from Budibase/fix_example_avg_helper
mike12345567 Sep 20, 2021
1d107cb
forgot to change the example doc
mslourens Sep 20, 2021
7258ea3
Bumping version.
mike12345567 Sep 21, 2021
8f98116
Removing use of falsey module, which will not build due to programmin…
mike12345567 Oct 7, 2021
3384005
bumping version.
mike12345567 Oct 7, 2021
b46b83c
Updated commands on installation
Sly777 Oct 16, 2021
3c05692
Some minor tweaks.
mike12345567 Jan 12, 2022
3725026
Updating comparisons to be inline with util usage.
mike12345567 Jan 12, 2022
7243aa2
Removing markdown and date helpers, which add nearly 2MB to the bundl…
mike12345567 Jan 31, 2022
c4dd7ae
v0.11.8
mike12345567 Jan 31, 2022
5ba93f5
Linting fix.
mike12345567 Jan 31, 2022
16b7dee
fix(README): fix incorrect syntax for ellipsis length argument
davidpfahler Oct 13, 2022
c3ffbdf
remove unused dependencies
connorskees Jan 11, 2023
5f939b0
Merge pull request #7 from connorskees/feat/unused-deps
mike12345567 May 9, 2023
8851589
Merge pull request #6 from davidpfahler/patch-1
mike12345567 May 9, 2023
9a15565
Merge pull request #5 from Sly777/patch-1
mike12345567 May 9, 2023
8c40ab8
Minor amends - removed duplicated helpers
ConorWebb96 Jun 21, 2023
5594282
Added line break to the end of math.js
ConorWebb96 Jun 21, 2023
0cb05c7
Merge pull request #8 from ConorWebb96/master
mike12345567 Jun 23, 2023
134183a
Removing mac os build checks.
mike12345567 Jun 23, 2023
e3e27c7
Merge pull request #9 from Budibase/conor-amends
mike12345567 Jun 23, 2023
7aa4282
Fixed example error in multiply helper. (#10)
ConorWebb96 Jun 23, 2023
8dc0503
Adding UUID functionality to helpers, so that it can easily be used o…
mike12345567 Dec 13, 2023
dc568b7
Updating example.
mike12345567 Dec 13, 2023
ae4d40e
v0.11.11
mike12345567 Dec 13, 2023
e5174af
Fixing test case.
mike12345567 Dec 13, 2023
2a8ba84
Updating tests to use latest Node versions.
mike12345567 Dec 13, 2023
c267bd5
Removing dangling comma (lint).
mike12345567 Dec 13, 2023
9c8ea54
Remove array-sort usage
adrinr Jan 9, 2024
d980f95
Remove kind-of usage
adrinr Jan 9, 2024
87673f5
Remove array-sort package
adrinr Jan 9, 2024
0a685a4
Remove define-property usages
adrinr Jan 10, 2024
cf69ff2
Remove define-property usages
adrinr Jan 10, 2024
d9a6a64
Lint
adrinr Jan 10, 2024
e6ceb06
Remove define-property package
adrinr Jan 10, 2024
d9b18bd
Remove extend-shallow usages
adrinr Jan 10, 2024
1fea984
Remove extend-shallow package
adrinr Jan 10, 2024
282a291
Replace for-in usages in favour of native implementation
adrinr Jan 10, 2024
ed83eb4
Remove for-in package
adrinr Jan 10, 2024
debd223
Rename test
adrinr Jan 10, 2024
690b67b
Rename ci
adrinr Jan 10, 2024
acc3a18
Remove helper-coverage
adrinr Jan 10, 2024
db2c431
Update micromatch package
adrinr Jan 10, 2024
e3a74d9
Merge pull request #13 from Budibase/chore/update-micromatch
adrinr Jan 10, 2024
9d8a00e
Merge branch 'master' into chore/remove-unnecessary-dependencies
adrinr Jan 10, 2024
ce05df1
Remove es6 usages
adrinr Jan 10, 2024
054d8f5
Lint
adrinr Jan 10, 2024
7918006
Merge pull request #12 from Budibase/chore/remove-unnecessary-depende…
adrinr Jan 10, 2024
3e13176
v0.12.0
adrinr Jan 10, 2024
3dd6c9f
Remove uuid
adrinr Jan 15, 2024
3a334ba
Remove uuid usage
adrinr Jan 15, 2024
f77d32a
Add missing require
adrinr Jan 15, 2024
97f3975
Lint
adrinr Jan 16, 2024
4d062c3
Merge pull request #14 from Budibase/chore/remove-uuid-dependency
adrinr Jan 16, 2024
69bae06
v0.12.1
adrinr Jan 16, 2024
8ec946d
Remove handlebars-utils.identity usage
adrinr Jan 16, 2024
d03ea93
Copy handlebars-utils in
adrinr Jan 17, 2024
9a910c5
Remove handlebars-utils
adrinr Jan 17, 2024
4f5ef39
Tree-shake number
adrinr Jan 17, 2024
e7d8883
Tree-shake array
adrinr Jan 17, 2024
9fd63a8
Lint
adrinr Jan 17, 2024
4bd65d8
Lint
adrinr Jan 17, 2024
18c5f47
Tree-shake string
adrinr Jan 17, 2024
eba6f9a
Fix tests
adrinr Jan 17, 2024
ef95f3e
Tree-shake object
adrinr Jan 17, 2024
a0d9f06
Tree-shake url
adrinr Jan 17, 2024
60f39e5
Tree-shake regex
adrinr Jan 17, 2024
800e364
Tree-shake comparison
adrinr Jan 17, 2024
5bc63aa
Lint
adrinr Jan 17, 2024
be3297c
Lint
adrinr Jan 17, 2024
cb8a1b2
Add uuid back
adrinr Jan 17, 2024
9b61cf3
Lint
adrinr Jan 18, 2024
78c97f5
Revert "Remove UUID dependency"
adrinr Jan 19, 2024
c9e8229
Merge pull request #16 from Budibase/revert-14-chore/remove-uuid-depe…
adrinr Jan 19, 2024
c5b78cc
v0.12.2
adrinr Jan 19, 2024
1b000ab
Merge branch 'master' into optimise-esbuild-bundle
adrinr Jan 19, 2024
c353df4
Update array doc
adrinr Jan 22, 2024
ead77b1
Fix string examples
adrinr Jan 22, 2024
53ebf31
Fix url
adrinr Jan 22, 2024
0c0a6aa
Fix comparasion
adrinr Jan 23, 2024
b356ed6
Create tests
adrinr Jan 23, 2024
3bfcbd7
Lint
adrinr Jan 23, 2024
b614cbe
Fix random test
adrinr Jan 23, 2024
e9df816
Fix toExponential
adrinr Jan 23, 2024
b6a7a89
Fix loading tests
adrinr Jan 23, 2024
f9b4257
Fix test
adrinr Jan 23, 2024
e711d8e
Fix center test
adrinr Jan 23, 2024
1b00f07
Fix before and after examples and code
adrinr Jan 23, 2024
0228980
Fix stripQuerystring docs
adrinr Jan 23, 2024
f119b5c
Fix array examples
adrinr Jan 23, 2024
e614954
Fixing array.before tests and code
adrinr Jan 23, 2024
05ab084
Fix raw example
adrinr Jan 23, 2024
8f173ba
Fix reverse test
adrinr Jan 23, 2024
0364097
Fix raw test
adrinr Jan 23, 2024
948c850
Fix, run all tests
adrinr Jan 23, 2024
f0c1ec6
Fix ifNth description
adrinr Jan 23, 2024
ca27ff4
Fix and add tests
adrinr Jan 23, 2024
9f5f1aa
Fix example
adrinr Jan 23, 2024
064fe89
Expose only collection helpers
adrinr Jan 23, 2024
f97c8fa
Merge pull request #17 from Budibase/test-examples
adrinr Jan 23, 2024
c551cbd
Merge pull request #18 from Budibase/fix-exposing-helpers
adrinr Jan 23, 2024
8db064f
v0.13.0
adrinr Jan 23, 2024
7a8681e
Merge branch 'master' into optimise-esbuild-bundle
adrinr Jan 23, 2024
554f12e
Add missing examples
adrinr Jan 26, 2024
0f93d9a
Fix wrong attributes
adrinr Jan 26, 2024
33968ef
Merge pull request #19 from Budibase/add-extra-examples
mike12345567 Jan 29, 2024
e658a31
Remove block from array.itemAt
adrinr Jan 30, 2024
cd8d0d8
Add @inline decorators
adrinr Jan 30, 2024
7e502b9
Merge pull request #20 from Budibase/fix-block-attributes
adrinr Jan 30, 2024
fab2b5b
v0.13.1
adrinr Jan 30, 2024
10250c9
adds loremIpsum function plus tests
mikesealey Jul 4, 2024
30a6b6a
adds function to write Lorem Ipsum inc tests
mikesealey Jul 4, 2024
6e045f3
removes unused "maxLoremLength" variable
mikesealey Jul 4, 2024
59bf984
fixes casing in example
mikesealey Jul 4, 2024
8bfc34a
prettier
mikesealey Jul 4, 2024
83afe46
Lint
adrinr Jul 4, 2024
a6bda6c
Merge pull request #21 from Budibase/lorem
mikesealey Jul 4, 2024
3f11685
v0.13.2
mike12345567 Jul 4, 2024
ebe5cb6
Move to using non-mutating variants of sort and reverse.
samwho Oct 4, 2024
123a41b
Merge pull request #22 from Budibase/move-to-non-mutating-sort-reverse-2
shogunpurple Oct 4, 2024
8a67b44
v0.14.0
shogunpurple Oct 4, 2024
3db734d
Merge branch 'master' into optimise-esbuild-bundle
adrinr Dec 2, 2024
993c07c
Update to mocha 9.x
adrinr Dec 2, 2024
0eed4b1
Update to mocha 10.x
adrinr Dec 2, 2024
87553ce
Merge pull request #25 from Budibase/update-mocha
adrinr Dec 2, 2024
f3735de
Merge pull request #23 from Budibase/remove-handlebars-utils
adrinr Dec 4, 2024
9377fd2
changes lorem argument to optional
mikesealey Mar 11, 2025
57a1f69
fixes typo
mikesealey Mar 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Expand Up @@ -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,
Expand Down
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
Expand Up @@ -14,7 +14,6 @@ node_modules
npm-debug.log

# yarn
yarn.lock
yarn-error.log

# misc
Expand Down
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.
Expand Down Expand Up @@ -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:
Expand Down
Loading