Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Merge d4ad85e into b19ead6
Browse files Browse the repository at this point in the history
  • Loading branch information
Giosk committed Oct 24, 2020
2 parents b19ead6 + d4ad85e commit 0bd5511
Show file tree
Hide file tree
Showing 22 changed files with 7,882 additions and 527 deletions.
14 changes: 10 additions & 4 deletions .editorconfig
@@ -1,10 +1,16 @@
root = true

[*]
indent_style = space
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
end_of_line = lf

[*.js]
indent_size = 4
indent_style = space
max_line_length = 100
indent_size = 2

[*.yaml]
indent_style = space
max_line_length = 100
indent_size = 2
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
dist/
34 changes: 34 additions & 0 deletions .eslintrc.yaml
@@ -0,0 +1,34 @@
---
parserOptions:
ecmaVersion: 9
env:
browser: true
commonjs: true
es6: true
rules:
semi: 2
strict:
- 2
- "global"
comma-dangle:
- 2
-
arrays: "always"
objects: "always"
imports: "always"
exports: "always"
functions: "never"
quotes:
- 2
- "single"
-
allowTemplateLiterals: true
new-cap: 0
camelcase: 0
keyword-spacing:
- error
-
after: true
max-len:
- error
- 100
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ node_modules
npm-debug.log
.idea
coverage
.nyc_output/
1 change: 1 addition & 0 deletions .nvmrc
@@ -0,0 +1 @@
v12
10 changes: 7 additions & 3 deletions .travis.yml
@@ -1,5 +1,9 @@
language: node_js
node_js:
- 4
- 5
- 6
- 10
- 11
- 12
- 13
- 14
- 15
script: npm run test-coverage
14 changes: 14 additions & 0 deletions .yourbase.yml
@@ -0,0 +1,14 @@
dependencies:
build:
- node:10.15.1
build_targets:
- name: default
environment:
- NODE_ENV=development
commands:
- npm install eslint --save-dev
- ./scripts/build-under-yourbase
ci:
builds:
- name: default
build_target: default
163 changes: 162 additions & 1 deletion CHANGELOG.md
@@ -1,4 +1,165 @@
# Change Log
## [v1.4.3](https://github.com/aknuds1/html-to-react/tree/v1.4.3)

- Handle non-boolean empty element attributes

## [v1.4.2](https://github.com/aknuds1/html-to-react/tree/v1.4.2)

- Support onclick attribute of HTML elements

## [v1.4.1](https://github.com/aknuds1/html-to-react/tree/v1.4.1)

- Allow nodes to be preprocessed [\#99](https://github.com/aknuds1/html-to-react/pull/99) ([aknuds1](https://github.com/aknuds1))

## [v1.4.0](https://github.com/aknuds1/html-to-react/tree/v1.4.0)

- Allow nodes to be preprocessed [\#90](https://github.com/aknuds1/html-to-react/pull/90) ([manixate](https://github.com/manixate))

## [v1.3.4](https://github.com/aknuds1/html-to-react/tree/v1.3.4)

- Use lodash.camelcase instead of underscore.string.fp [\#76](https://github.com/aknuds1/html-to-react/pull/76) ([codepunkt](https://github.com/codepunkt))

## [v1.3.3](https://github.com/aknuds1/html-to-react/tree/v1.3.3)

- Handle free-standing text nodes in HTML

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.3.2...v1.3.3)

## [v1.3.2](https://github.com/aknuds1/html-to-react/tree/v1.3.2)

- Handle directives in HTML

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.3.1...v1.3.2)

## [v1.3.1](https://github.com/aknuds1/html-to-react/tree/v1.3.1)

- Handle invalid inline styles

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.3.0...v1.3.1)

**Merged pull requests:**

- Handle invalid inline styles [\#52](https://github.com/aknuds1/html-to-react/pull/52) ([nickpalmer](https://github.com/nickpalmer))

## [v1.3.0](https://github.com/aknuds1/html-to-react/tree/v1.3.0)

- Upgrade to React 16

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.12...v1.3.0)

## [v1.2.12](https://github.com/aknuds1/html-to-react/tree/v1.2.12)

- Trim inline style props values

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.11...v1.2.12)

**Merged pull requests:**

- Trim inline style props values [\#47](https://github.com/aknuds1/html-to-react/pull/47) ([gycianka](https://github.com/gycianka))

## [v1.2.11](https://github.com/aknuds1/html-to-react/tree/v1.2.11)

- Handle base64 inlined images

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.10...v1.2.11)

**Merged pull requests:**

- Fix for base64 inlined images [\#33](https://github.com/aknuds1/html-to-react/pull/33) ([aleemb](https://github.com/aleemb))

## [v1.2.10](https://github.com/aknuds1/html-to-react/tree/v1.2.10)

- Handle background-image styles

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.9...v1.2.10)

**Merged pull requests:**

- Handle background-image styles [\#31](https://github.com/aknuds1/html-to-react/pull/31) ([brett-nuske-alliancesoftware](https://github.com/brett-nuske-alliancesoftware))

## [v1.2.9](https://github.com/aknuds1/html-to-react/tree/v1.2.9)

- Handle `for` attribute

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.8...v1.2.9)

## [v1.2.8](https://github.com/aknuds1/html-to-react/tree/v1.2.8)

- Handle xmlns:xlink

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.7...v1.2.8)

**Merged pull requests:**

- Converting for to htmlFor [\#30](https://github.com/aknuds1/html-to-react/pull/30) ([nathanfriemel](https://github.com/nathanfriemel))

## [v1.2.7](https://github.com/aknuds1/html-to-react/tree/v1.2.7)

- Depend directly on domhandler, for compatibility with older Node.js

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.6...v1.2.7)

## [v1.2.6](https://github.com/aknuds1/html-to-react/tree/v1.2.6)

- Make library smaller

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.5...v1.2.6)

## [v1.2.5](https://github.com/aknuds1/html-to-react/tree/v1.2.5)

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.4...v1.2.5)

**Merged pull requests:**

- Test of inline style with characters entities. [\#21](https://github.com/aknuds1/html-to-react/pull/21) ([Gycianka](https://github.com/Gycianka))

## [v1.2.4](https://github.com/aknuds1/html-to-react/tree/v1.2.4)

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.3...v1.2.4)

**Merged pull requests:**

- parsing multiple root elements [\#17](https://github.com/aknuds1/html-to-react/pull/17) ([oroce](https://github.com/oroce))

## [v1.2.3](https://github.com/aknuds1/html-to-react/tree/v1.2.3)

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.2...v1.2.3)

**Merged pull requests:**

- Occurrence of ampersand in attributes are decoded to `&` to avoid ano… [\#15](https://github.com/aknuds1/html-to-react/pull/15) ([gerhardsletten](https://github.com/gerhardsletten))

## [v1.2.2](https://github.com/aknuds1/html-to-react/tree/v1.2.2)

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.1...v1.2.2)

**Merged pull requests:**

- handle xmlns attributes (e.g. xlink:href) [\#9](https://github.com/aknuds1/html-to-react/pull/9) ([gfx](https://github.com/gfx))

## [v1.2.1](https://github.com/aknuds1/html-to-react/tree/v1.2.1)

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.0...v1.2.1)

## [v1.2.0](https://github.com/aknuds1/html-to-react/tree/v1.2.0)

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.1.2...v1.2.0)

**Merged pull requests:**

- Replace element children [\#2](https://github.com/aknuds1/html-to-react/pull/3) ([hirefrederick](https://github.com/hirefrederick))

## [v1.1.2](https://github.com/aknuds1/html-to-react/tree/v1.1.2)

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.1.1...v1.1.2)

## [v1.1.1](https://github.com/aknuds1/html-to-react/tree/v1.1.1)

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.1.0...v1.1.1)

## [v1.1.0](https://github.com/aknuds1/html-to-react/tree/v1.1.0)

[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.0.0...v1.1.0)

## [v1.0.0](https://github.com/mikenikles/html-to-react/tree/v1.0.0)

Expand Down Expand Up @@ -55,4 +216,4 @@
## [v0.0.2](https://github.com/mikenikles/html-to-react/tree/v0.0.2) (2015-06-20)


\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
1 change: 1 addition & 0 deletions LICENSE
@@ -1,6 +1,7 @@
The MIT License (MIT)

Copyright (c) 2015 Mike Nikles
Copyright (c) 2020 Arve Knudsen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 0bd5511

Please sign in to comment.