Skip to content

Commit 3bfc5b7

Browse files
committed
Add upgrade guide
1 parent 64a75f2 commit 3bfc5b7

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

CHANGELOG.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## v6.0.0
6+
7+
* Refactored all jQuery code to vanilla JavaScript/TypeScript. jQuery is no longer required.
8+
* Collections are now initialized with a data attribute containing json config set within PHP code.
9+
This means that the collection type can now be initialized without any JavaScript. See
10+
the [collection docs](/docs/collections.md) for more info
11+
* The JavaScript/Typescript code is now published as an [NPM module](https://www.npmjs.com/package/@palmtree/form) and
12+
can be imported into your project.
13+
See the [Vite, Webpack and other bundlers docs](/docs/vite-webpack-and-other-bundlers.md) for more info. You can also
14+
use the [unpkg CDN](https://unpkg.com/@palmtree/[email protected]/dist/palmtree-form.pkgd.min.js) to get the full pacakge:
15+
16+
```html
17+
<script src="https://unpkg.com/@palmtree/[email protected]/dist/palmtree-form.pkgd.min.js"></script>
18+
```
19+
520
## v5.0.1 - 2024-07-09
621

722
* Updated UMD in JS code for Vite support. In Vite production builds, `module.exports` is defined but `require` is not.
@@ -50,7 +65,6 @@ All notable changes to this project will be documented in this file.
5065
Added functionality to render fields individually with a new `renderField` method. Among other things, this allows
5166
developers to fully utilise Bootstrap's grid system by rendering fields in different columns.
5267

53-
5468
## v4.2 - 2022-02-16
5569

5670
Added support for Bootstrap 5. This was achieved by:

docs/vite-webpack-and-other-bundlers.md

+2
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ import '@palmtree/form/recaptcha';
1616
```
1717

1818
Each of the above imports has side effects, namely adding `DOMContentLoaded` event listeners to the document to initialize the relevant features.
19+
20+
[Return to index](index.md)

0 commit comments

Comments
 (0)