Skip to content

Update/GitHub purescript halogen vdom repo #52

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 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
4ff1976
modified utils.js for creating dom structure
knaman2609 Feb 2, 2018
ef6d2a6
Modified Utils.js/removeChild
knaman2609 Feb 5, 2018
76fa2ee
Modifying Utils.purs for supporting addChild
knaman2609 Feb 5, 2018
ee0aa89
If element is removed, no more child remove calls
knaman2609 Feb 5, 2018
2dfd8e1
added prop __removed `true` to current node with unsafe parent
knaman2609 Feb 6, 2018
0cb345f
minor fix
knaman2609 Feb 6, 2018
1d45a32
addChild fix added
knaman2609 Feb 7, 2018
331aa31
fix added for null handling in insertChildIx
knaman2609 Feb 8, 2018
fe5c257
used `id` to identify parent child relationship
knaman2609 Feb 9, 2018
5b8bf69
Merge pull request #1 from juspay/custom-vdom
ashutoshdas96 Feb 9, 2018
ac7b186
Add create element
jronak Feb 12, 2018
fdec76c
Added new behaviour handler
Feb 20, 2018
106cd10
Merge pull request #2 from ashutoshdas96/exp/diffAttr
codenirvana Feb 20, 2018
d184cc0
Merge pull request #2 from juspay/custom-vdom-v1
ashutoshdas96 Apr 13, 2018
63459c1
using __ref.__id for identifying elem
Apr 19, 2018
a159179
modified buildProp
May 11, 2018
fc64a84
Fix for adding eventListener during patch
May 11, 2018
6097af9
Initial commit for behaviour support
Jun 29, 2018
4511ce8
update for compiler v0.12
Jul 15, 2018
4ffdfe9
f1 not a function runtime error fix
Sep 10, 2018
3447b5d
Export unsafeEqThunk
nlander Sep 26, 2018
fe6e998
Expose Thunk constructor
nlander Sep 30, 2018
3c52a2a
Export ThunkId and ThunkArg types
nlander Oct 5, 2018
f3a01df
Merge pull request #5 from nlander/exposeThunkFeatures
dilipzotha Oct 12, 2018
429e50d
fix for keyed elements
Jan 10, 2019
54fd046
Notify global manual event handler
jronak Mar 28, 2019
109ff0a
removed direct modification of window variable
shivamashtikar Jun 12, 2020
d522ef6
update dependancies
JamesGeorg Jun 28, 2020
9a4e956
Merged in dev/compiler-0.12/pre-rendering (pull request #2)
shivamashtikar Jul 6, 2020
bf7d27e
Revert "update dependancies"
JamesGeorg Jul 8, 2020
d3e22aa
added an Array parameter to replaceView function
shivamashtikar Sep 10, 2020
f7d74b2
Merged in bugfix/PICAF-1445-after-render-props (pull request #3)
shivamashtikar Sep 21, 2020
65003f0
PICAF-4739 :: First cut for adding a m-app widget
JamesGeorg Apr 21, 2021
37878ab
PICAF-4761: Changes in micro-app functions
Apr 22, 2021
d3af463
Merged in PICAF-4761-fragment-changes (pull request #4)
Apr 23, 2021
317866f
PICAF-4739 :: Added requestId and service to elem
JamesGeorg Apr 23, 2021
3a362f3
PICAF-1235 :: fg-10 migration
JamesGeorg Jan 10, 2021
9731153
PICAF-4739 :: Add changes for patch of offers
JamesGeorg May 12, 2021
2faf1f1
PICAF-4739 :: Fixed compile
JamesGeorg May 18, 2021
d90ada0
PICAF-5134 :: Group patches for props of a single view
JamesGeorg Jun 13, 2021
1cde868
PICAF-5134 :: Grouping child updates
JamesGeorg Jun 16, 2021
8054ebf
PICAF-5134 :: Added support to deep diff listData
JamesGeorg Jun 25, 2021
4057d5c
PICAF-5134 :: Fixed usage of effect function for set manual events
JamesGeorg Jun 28, 2021
3bac827
PICAF-5134 :: Eq instance for PropValue
shivamashtikar Apr 15, 2020
0099893
PICAF-5134 :: Fix compilation
JamesGeorg Sep 22, 2021
d9e753e
PICAF-4739 sync with master
Nandini0422 Sep 22, 2021
57687d6
PICAF-6839 :: Stop comparison, when lengths are different
JamesGeorg Oct 5, 2021
6ddde06
PICAF-7147 added support for chunk shimmer layout
Datron Nov 22, 2021
6c33b5e
PICAF-7147 chunking
Datron Dec 10, 2021
3033e95
PICAF-16161 fixed replace view when it both removes and updates props
gebin-juspay Sep 7, 2022
99b77ae
PICAF-10982 Halogen changes for vdom caching
SauravCVJuspay May 24, 2022
b57530e
ci: PICAF-19117: helper tools for version management and Jenkins support
shivamashtikar Dec 22, 2022
f26a8b8
feat: PICAF-18952: Shifted to PS15
anuragdvd Dec 23, 2022
ac3847a
chore(release): 3.0.0 [skip ci]
Dec 23, 2022
b0aa985
fix: PICAF-19117: adding branch rule to jenkins
avi892nash-juspay Dec 26, 2022
14201f0
chore(release): 3.0.1 [skip ci]
Dec 27, 2022
ad1d72e
fix: PICAF-18952: Updating es-lint rules and adding eslint:fix
anuragdvd Jan 2, 2023
3130c57
chore(release): 3.0.2 [skip ci]
Jan 5, 2023
62e0624
chore: PICAF-19932: updating urls to Juspay Bitbucket server url
shivamashtikar Jan 23, 2023
a5c668e
chore: PICAF-19932: updating Git credentials in Jenkinsfile
shivamashtikar Jan 24, 2023
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
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
33 changes: 33 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"env": { "browser": true, "es2015": true },
"extends": "eslint:recommended",
"parserOptions": { "ecmaVersion": 2015, "sourceType": "module" },
"rules": {
"block-scoped-var": "error",
"no-caller": "error",
"no-extra-parens": "off",
"no-extend-native": "error",
"no-loop-func": "error",
"no-new": "error",
"no-return-assign": "error",
"no-sequences": "error",
"no-shadow": "error",
"no-unused-expressions": "error",
"no-undef": "error",
"no-eq-null": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"quotes": ["error", "double"],
"strict": ["error", "global"],
"no-unused-vars": "off",
"no-empty": "off",
"radix": "off",
"no-param-reassign": "off",
"eqeqeq": "off",
"no-bitwise": "off",
"consistent-return": "off",
"guard-for-in": "off",
"no-mixed-spaces-and-tabs": "off",
"no-use-before-define": "off",
"no-dupe-keys": "off"
}
}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/.*
/.psc-ide-port
!/.editorconfig
!/.tidyrc.json
!/.gitignore
!/.eslintrc.json
!/.travis.yml
package-lock.json
/bower_components/
/node_modules/
/output/
/**/*.ast
/Session.vim
/.spago
9 changes: 9 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

BRANCH_NAME=$(git branch | grep '*' | sed 's/* //')

if [[ $BRANCH_NAME != *"no branch"* ]]
then
npx --no -- commitlint --edit "${1}"
fi
12 changes: 12 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Adding hooks to prepare commit message.
# This hook triggers Jira input modules.
# Helps in maintaining code compatblity.

BRANCH_NAME=$(git branch | grep '*' | sed 's/* //')

if [[ $BRANCH_NAME != *"no branch"* ]]
then
exec < /dev/tty && node_modules/.bin/git-cz --hook || true
fi
10 changes: 10 additions & 0 deletions .tidyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"importSort": "source",
"importWrap": "source",
"indent": 2,
"operatorsFile": null,
"ribbon": 1,
"typeArrowPlacement": "first",
"unicode": "never",
"width": null
}
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## [3.0.2](https://bitbucket.org/juspay/purescript-halogen-vdom/compare/v3.0.1...v3.0.2) (2023-01-05)


### Bug Fixes

* PICAF-18952: Updating es-lint rules and adding eslint:fix ([ad1d72e](https://bitbucket.org/juspay/purescript-halogen-vdom/commits/ad1d72e254c25928f66fc8f049669362dadce519))

## [3.0.1](https://bitbucket.org/juspay/purescript-halogen-vdom/compare/v3.0.0...v3.0.1) (2022-12-27)


### Bug Fixes

* PICAF-19117: adding branch rule to jenkins ([b0aa985](https://bitbucket.org/juspay/purescript-halogen-vdom/commits/b0aa98593d7e23d5e608ad11b90f42d6935f74b6))

# [3.0.0](https://bitbucket.org/juspay/purescript-halogen-vdom/compare/v2.0.1...v3.0.0) (2022-12-23)


### Features

* PICAF-18952: Shifted to PS15 ([f26a8b8](https://bitbucket.org/juspay/purescript-halogen-vdom/commits/f26a8b8274289ba00134378990597f05c3751aa3))


### BREAKING CHANGES

* Purescript version is changing
61 changes: 61 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
def isVersionBumpCandidateBranch(branch) {
(branch =~ /(main|hotfix-)/)
}

pipeline {
agent {
label "sdk"
}
environment {
NPM_REPO_NAME = "purescript-halogen-vdom"
GIT_AUTHOR_NAME = 'jenkins.user'
GIT_AUTHOR_EMAIL = '[email protected]'
GIT_COMMITTER_NAME = 'jenkins.user'
GIT_COMMITTER_EMAIL = '[email protected]'
GIT_USERNAME = 'jenkins.user'
GIT_EMAIL = '[email protected]'

}

stages {
stage('Checkout') {
steps {
scmSkip(deleteBuild: false, skipPattern:'.*\\[skip ci\\].*')
script {
if (sh(script: "git log -1 --pretty=%B | grep -F -ie '[skip ci]' -e '[ci skip]'", returnStatus: true) == 0) {
currentBuild.result = 'ABORTED'
error 'Aborting because commit message contains [skip ci]'
}
}
}
}

stage("npm/spago install") {
steps {
script {
sh ("npm config set package-lock=false; npm i")
sh ("npm run spago:install")
}
}
}

stage("PS compilation") {
steps {
script {
// build packages to ensure compilation / tests work fine before updating version
sh ("npm run compile")
}
}
}

stage("npm release") {
steps {
script {
if (isVersionBumpCandidateBranch(env.BRANCH_NAME)) {
sh ("npx semantic-release --debug")
}
}
}
}
}
}
24 changes: 12 additions & 12 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@
"output"
],
"dependencies": {
"purescript-prelude": "^4.0.0",
"purescript-effect": "^2.0.0",
"purescript-tuples": "^5.0.0",
"purescript-web-html": "^1.0.0",
"purescript-foreign-object": "^1.0.0",
"purescript-maybe": "^4.0.0",
"purescript-unsafe-coerce": "^4.0.0",
"purescript-bifunctors": "^4.0.0",
"purescript-refs": "^4.1.0",
"purescript-foreign": "^5.0.0"
"purescript-prelude": "^6.0.0",
"purescript-effect": "^4.0.0",
"purescript-tuples": "^7.0.0",
"purescript-web-html": "^4.0.0",
"purescript-foreign-object": "^4.0.0",
"purescript-maybe": "^6.0.0",
"purescript-unsafe-coerce": "^6.0.0",
"purescript-bifunctors": "^6.0.0",
"purescript-refs": "^6.0.0",
"purescript-foreign": "^7.0.0"
},
"devDependencies": {
"purescript-js-timers": "^4.0.0",
"purescript-exists": "^4.0.0"
"purescript-js-timers": "^6.1.0",
"purescript-exists": "^6.0.0"
}
}
89 changes: 83 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,91 @@
{
"name": "purescript-halogen-vdom",
"version": "3.0.2",
"private": true,
"scripts": {
"clean": "rimraf output && rimraf",
"test": "pulp build -I test -- --censor-lib --strict",
"build": "pulp build -- --censor-lib --strict"
"start": "spago build -w --before 'npm run eslint' --purs-args '--censor-lib --strict'",
"eslint": "eslint src",
"compile": "eslint src && spago build --purs-args '--censor-lib --strict'",
"spago:install": "spago install",
"prepare": "husky install",
"eslint:fix": "eslint src --fix"
},
"config": {
"commitizen": {
"path": "./node_modules/@digitalroute/cz-conventional-changelog-for-jira",
"jiraPrefix": "PICAF",
"jiraLocation": "post-type",
"jiraAppend": ":"
}
},
"commitlint": {
"plugins": [
"commitlint-plugin-jira-rules"
],
"extends": [
"jira"
],
"rules": {
"jira-task-id-max-length": [
0
],
"jira-commit-message-separator": [
0
],
"jira-commit-status-case": [
0
],
"jira-task-id-project-key": [
0
],
"jira-task-id-separator": [
0
],
"jira-task-id-case": [
0
],
"jira-task-id-min-length": [
0
]
}
},
"release": {
"branches": [
"main",
{
"name": "hotfix-[0-9]+.[0-9]+.[0-9]+",
"prerelease": true
}
],
"repositoryUrl": "[email protected]:picaf/purescript-halogen-vdom.git",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/changelog",
"@semantic-release/git"
]
},
"devDependencies": {
"pulp": "^12.2.0",
"purescript": "slamdata/node-purescript#0.12",
"purescript-psa": "^0.6.0",
"rimraf": "^2.6.2"
"pulp": "^16.0.2",
"purescript": "^0.15.6",
"rimraf": "^2.6.2",
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@digitalroute/cz-conventional-changelog-for-jira": "^7.4.2",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"commitlint-config-jira": "^1.6.4",
"commitlint-plugin-jira-rules": "^1.6.4",
"cz-conventional-changelog": "^3.3.0",
"husky": "^8.0.2",
"semantic-release": "^19.0.5",
"spago": "^0.20.9",
"eslint": "^8.29.0",
"purescript-psa": "^0.8.2"
}
}
Loading