squel 5.11.1 → 5.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +13 -7
- package/dist/squel-basic.js +249 -276
- package/dist/squel-basic.min.js +2 -2
- package/dist/squel.js +337 -364
- package/dist/squel.min.js +2 -2
- package/gulpfile.js +2 -5
- package/package.json +6 -2
- package/performance/select.js +22 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog for [squel](https://github.com/hiddentao/squel)
|
|
2
2
|
|
|
3
|
+
## 18 Jun 2019 (5.13.0)
|
|
4
|
+
* Added note to top of README stating that Squel is no longer actively maintained.
|
|
5
|
+
|
|
6
|
+
## 9 Jul 2018 (5.12.2)
|
|
7
|
+
* Fix Node.js CVE (update growl dev dependency)
|
|
8
|
+
|
|
3
9
|
## 17 Jul 2017 (5.11.1)
|
|
4
10
|
* #322 - Tyepscript definitions
|
|
5
11
|
* #321 - Allow `LIMIT` and `OFFSET` with `0`
|
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# NOTE: Squel is no longer actively maintained. I only have time for occasional bugfixes and small-scale work. If you are interested in helping with squel maintenance the help would be welcome. Alternatively, please use another library.
|
|
2
|
+
|
|
1
3
|
# squel - SQL query string builder
|
|
2
4
|
|
|
3
5
|
[](http://travis-ci.org/hiddentao/squel)
|
|
@@ -9,9 +11,7 @@
|
|
|
9
11
|
|
|
10
12
|
A flexible and powerful SQL query string builder for Javascript.
|
|
11
13
|
|
|
12
|
-
Full documentation (guide and API) at [
|
|
13
|
-
|
|
14
|
-
**Note: The latest Squel version only works on Node 0.12 or above. Please use Squel 4.4.1 for Node <0.12. The [old 4.x docs](http://hiddentao.github.io/squel/v4/index.html) are also still available.**
|
|
14
|
+
Full documentation (guide and API) at [https://hiddentao.github.io/squel](https://hiddentao.github.io/squel).
|
|
15
15
|
|
|
16
16
|
## Features
|
|
17
17
|
|
|
@@ -22,11 +22,12 @@ Full documentation (guide and API) at [http://squeljs.org/](http://squeljs.org/)
|
|
|
22
22
|
* Can be customized to build any query or command of your choosing.
|
|
23
23
|
* Uses method chaining for ease of use.
|
|
24
24
|
* Small: ~7 KB minified and gzipped
|
|
25
|
-
* And much more, [see the guide..](
|
|
25
|
+
* And much more, [see the guide..](https://hiddentao.github.io/squel)
|
|
26
26
|
|
|
27
27
|
**WARNING: Do not ever pass queries generated on the client side to your web server for execution.** Such a configuration would make it trivial for a casual attacker to execute arbitrary queries—as with an SQL-injection vector, but much easier to exploit and practically impossible to protect against.
|
|
28
28
|
|
|
29
|
-
_Note:
|
|
29
|
+
_Note: Squel is suitable for production use, but you may wish to consider more
|
|
30
|
+
actively developed alternatives such as [Knex](http://knexjs.org/)_
|
|
30
31
|
|
|
31
32
|
## Installation
|
|
32
33
|
|
|
@@ -245,7 +246,7 @@ squel.update().
|
|
|
245
246
|
```
|
|
246
247
|
|
|
247
248
|
|
|
248
|
-
_Note that custom value handlers can be overridden on a per-instance basis (see the [docs](
|
|
249
|
+
_Note that custom value handlers can be overridden on a per-instance basis (see the [docs](https://hiddentao.github.io/squel))_
|
|
249
250
|
|
|
250
251
|
### Custom queries
|
|
251
252
|
|
|
@@ -366,10 +367,15 @@ Instructions for creating a new release of squel are in `RELEASE.md`.
|
|
|
366
367
|
|
|
367
368
|
Contributions are welcome! Please see `CONTRIBUTING.md`.
|
|
368
369
|
|
|
370
|
+
## Older verions
|
|
371
|
+
|
|
372
|
+
**Note: The latest Squel version only works on Node 0.12 or above. Please use Squel 4.4.1 for Node <0.12. The [old 4.x docs](http://hiddentao.github.io/squel/v4/index.html) are also still available.**
|
|
373
|
+
|
|
369
374
|
|
|
370
375
|
## Ports to other languages
|
|
371
376
|
|
|
372
|
-
* .NET - https://github.com/seymourpoler/
|
|
377
|
+
* .NET - https://github.com/seymourpoler/Squel.net
|
|
378
|
+
* Crystal - https://github.com/seymourpoler/Squel.crystal
|
|
373
379
|
|
|
374
380
|
## License
|
|
375
381
|
|