Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit ff526d1

Browse files
feat: modernize, adopt CommonLogger
1 parent b95ed05 commit ff526d1

File tree

9 files changed

+981
-1468
lines changed

9 files changed

+981
-1468
lines changed

.circleci/config.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches: [master, next, act]
6+
7+
jobs:
8+
release-job:
9+
runs-on: ubuntu-latest
10+
if: "!contains(github.event.head_commit.message, 'skip ci')"
11+
env: { NODE_OPTIONS: '--max-old-space-size=3200' }
12+
steps:
13+
- { uses: actions/checkout@v2, with: { persist-credentials: true } }
14+
- { uses: actions/setup-node@v2, with: { node-version: 16, cache: 'yarn' } }
15+
16+
# Cache for npm/npx in ~/.npm
17+
- uses: actions/cache@v2
18+
with:
19+
path: ~/.npm
20+
key: npm-v1-${{ runner.os }}
21+
22+
- name: yarn
23+
run: yarn --frozen-lockfile
24+
25+
- name: build
26+
run: yarn build-prod
27+
28+
- name: release
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
run: npx @naturalcycles/semantic-release

CHANGELOG.md

Lines changed: 1 addition & 205 deletions
Original file line numberDiff line numberDiff line change
@@ -1,205 +1 @@
1-
## [3.8.1](https://github.com/NaturalCycles/mysql-lib/compare/v3.8.0...v3.8.1) (2021-10-17)
2-
3-
4-
### Bug Fixes
5-
6-
* adapt to latest db-lib ([9a368ef](https://github.com/NaturalCycles/mysql-lib/commit/9a368ef4b9d964c09520660319059e9cb67bcf76))
7-
8-
# [3.8.0](https://github.com/NaturalCycles/mysql-lib/compare/v3.7.1...v3.8.0) (2021-10-04)
9-
10-
11-
### Features
12-
13-
* modernize ([6e8f0a2](https://github.com/NaturalCycles/mysql-lib/commit/6e8f0a254a67902cbc185f034f58cd4f6885449d))
14-
15-
## [3.7.1](https://github.com/NaturalCycles/mysql-lib/compare/v3.7.0...v3.7.1) (2020-06-03)
16-
17-
18-
### Bug Fixes
19-
20-
* modernize ([517f695](https://github.com/NaturalCycles/mysql-lib/commit/517f6952feb15059730f4f7443a295bf596053fc))
21-
22-
# [3.7.0](https://github.com/NaturalCycles/mysql-lib/compare/v3.6.0...v3.7.0) (2020-04-08)
23-
24-
25-
### Features
26-
27-
* modernize ([e0e2890](https://github.com/NaturalCycles/mysql-lib/commit/e0e2890cb31e88fcbdae63c417d6cc5c6a52d4e8))
28-
29-
# [3.6.0](https://github.com/NaturalCycles/mysql-lib/compare/v3.5.2...v3.6.0) (2020-03-01)
30-
31-
32-
### Features
33-
34-
* deps ([008aa10](https://github.com/NaturalCycles/mysql-lib/commit/008aa10d059734d76c2354553a8dc35c8117b3b2))
35-
36-
## [3.5.2](https://github.com/NaturalCycles/mysql-lib/compare/v3.5.1...v3.5.2) (2019-11-20)
37-
38-
39-
### Bug Fixes
40-
41-
* BIT typecast to boolean correctly ([0bc815e](https://github.com/NaturalCycles/mysql-lib/commit/0bc815e025a33ab9fae5405c8b97dd53aae392ca))
42-
43-
## [3.5.1](https://github.com/NaturalCycles/mysql-lib/compare/v3.5.0...v3.5.1) (2019-11-20)
44-
45-
46-
### Bug Fixes
47-
48-
* correctly type-cast booleans with value=NULL ([e208b4c](https://github.com/NaturalCycles/mysql-lib/commit/e208b4ca16f700b6ed7bf95c872f68f934894992))
49-
50-
# [3.5.0](https://github.com/NaturalCycles/mysql-lib/compare/v3.4.0...v3.5.0) (2019-11-09)
51-
52-
53-
### Features
54-
55-
* implement getDBAdapter. Allow empty (default) configuration ([bcf12dc](https://github.com/NaturalCycles/mysql-lib/commit/bcf12dc9360f525749f9bb10965046b4c56d849a))
56-
57-
# [3.4.0](https://github.com/NaturalCycles/mysql-lib/compare/v3.3.1...v3.4.0) (2019-11-09)
58-
59-
60-
### Features
61-
62-
* auto JSON.stringify objects (and arrays) ([0d9aaed](https://github.com/NaturalCycles/mysql-lib/commit/0d9aaedf8f2920a51dacf13b6723eb98c61b34c3))
63-
64-
## [3.3.1](https://github.com/NaturalCycles/mysql-lib/compare/v3.3.0...v3.3.1) (2019-11-09)
65-
66-
67-
### Bug Fixes
68-
69-
* use LONGBLOB for binary columns ([ae4facc](https://github.com/NaturalCycles/mysql-lib/commit/ae4facc76bc03b8aafa5141199a98bef530f6913))
70-
71-
# [3.3.0](https://github.com/NaturalCycles/mysql-lib/compare/v3.2.1...v3.3.0) (2019-11-09)
72-
73-
74-
### Features
75-
76-
* mapNameToMySQL ([c4bf40c](https://github.com/NaturalCycles/mysql-lib/commit/c4bf40cd6aefaf78219a2588ec803cf74004bc07))
77-
78-
## [3.2.1](https://github.com/NaturalCycles/mysql-lib/compare/v3.2.0...v3.2.1) (2019-11-09)
79-
80-
81-
### Bug Fixes
82-
83-
* createTable() ([7983085](https://github.com/NaturalCycles/mysql-lib/commit/7983085017562a4e4a8f7dd38eb41ae6b9fc30ed))
84-
85-
# [3.2.0](https://github.com/NaturalCycles/mysql-lib/compare/v3.1.0...v3.2.0) (2019-11-09)
86-
87-
88-
### Bug Fixes
89-
90-
* emoji support ([1262fc4](https://github.com/NaturalCycles/mysql-lib/commit/1262fc4d9ad39c818833b5cfc31b3a65979cdea0))
91-
92-
93-
### Features
94-
95-
* auto split long sql queries ([c7c780f](https://github.com/NaturalCycles/mysql-lib/commit/c7c780f295d7ded9f418509f3160a512ec54c7e7))
96-
97-
# [3.1.0](https://github.com/NaturalCycles/mysql-lib/compare/v3.0.0...v3.1.0) (2019-11-08)
98-
99-
100-
### Features
101-
102-
* commonSchemaToMySQLDDL ([09168c5](https://github.com/NaturalCycles/mysql-lib/commit/09168c563cbb629ca47121a1aac6a125dd23c144))
103-
* implement getTables(), getTableSchema() ([20a7746](https://github.com/NaturalCycles/mysql-lib/commit/20a7746c8c4c88dfca8365d1e8d2decce3f47efa))
104-
105-
# [3.0.0](https://github.com/NaturalCycles/mysql-lib/compare/v2.0.2...v3.0.0) (2019-11-02)
106-
107-
108-
### Features
109-
110-
* adapt to db-lib@3 ([7d13f54](https://github.com/NaturalCycles/mysql-lib/commit/7d13f540c92dd59b014d1a502c1bff937fad567f))
111-
112-
113-
### BREAKING CHANGES
114-
115-
* ^^^
116-
117-
## [2.0.2](https://github.com/NaturalCycles/mysql-lib/compare/v2.0.1...v2.0.2) (2019-10-20)
118-
119-
120-
### Bug Fixes
121-
122-
* adopt to db-lib ([6da7d78](https://github.com/NaturalCycles/mysql-lib/commit/6da7d78))
123-
124-
## [2.0.1](https://github.com/NaturalCycles/mysql-lib/compare/v2.0.0...v2.0.1) (2019-10-19)
125-
126-
127-
### Bug Fixes
128-
129-
* use Readable ([a0d09c1](https://github.com/NaturalCycles/mysql-lib/commit/a0d09c1))
130-
131-
# [2.0.0](https://github.com/NaturalCycles/mysql-lib/compare/v1.7.1...v2.0.0) (2019-10-18)
132-
133-
134-
### Features
135-
136-
* implement CommonDB 2.0 ([9de0e9f](https://github.com/NaturalCycles/mysql-lib/commit/9de0e9f))
137-
138-
139-
### BREAKING CHANGES
140-
141-
* ^^^
142-
143-
## [1.7.1](https://github.com/NaturalCycles/mysql-lib/compare/v1.7.0...v1.7.1) (2019-10-18)
144-
145-
146-
### Bug Fixes
147-
148-
* pin @types/hapi__joi ([3e3cf5a](https://github.com/NaturalCycles/mysql-lib/commit/3e3cf5a))
149-
150-
# [1.7.0](https://github.com/NaturalCycles/mysql-lib/compare/v1.6.0...v1.7.0) (2019-09-30)
151-
152-
153-
### Features
154-
155-
* tiny change to use pool.query inst of getConnection() ([6ffe1b4](https://github.com/NaturalCycles/mysql-lib/commit/6ffe1b4))
156-
157-
# [1.6.0](https://github.com/NaturalCycles/mysql-lib/compare/v1.5.0...v1.6.0) (2019-09-30)
158-
159-
160-
### Features
161-
162-
* offset ([78710a1](https://github.com/NaturalCycles/mysql-lib/commit/78710a1))
163-
164-
# [1.5.0](https://github.com/NaturalCycles/mysql-lib/compare/v1.4.0...v1.5.0) (2019-09-30)
165-
166-
167-
### Features
168-
169-
* testing simpler streamSQL impl ([0887aa3](https://github.com/NaturalCycles/mysql-lib/commit/0887aa3))
170-
171-
# [1.4.0](https://github.com/NaturalCycles/mysql-lib/compare/v1.3.0...v1.4.0) (2019-09-30)
172-
173-
174-
### Features
175-
176-
* stream to use it's own separate connection ([43615f3](https://github.com/NaturalCycles/mysql-lib/commit/43615f3))
177-
178-
# [1.3.0](https://github.com/NaturalCycles/mysql-lib/compare/v1.2.0...v1.3.0) (2019-09-30)
179-
180-
181-
### Features
182-
183-
* cfg.debugConnections ([70218ba](https://github.com/NaturalCycles/mysql-lib/commit/70218ba))
184-
185-
# [1.2.0](https://github.com/NaturalCycles/mysql-lib/compare/v1.1.0...v1.2.0) (2019-09-28)
186-
187-
188-
### Features
189-
190-
* add BIT cast to boolean ([899cce4](https://github.com/NaturalCycles/mysql-lib/commit/899cce4))
191-
192-
# [1.1.0](https://github.com/NaturalCycles/mysql-lib/compare/v1.0.0...v1.1.0) (2019-09-21)
193-
194-
195-
### Features
196-
197-
* modernize, implement saveBatch ([5595b6a](https://github.com/NaturalCycles/mysql-lib/commit/5595b6a))
198-
199-
# 1.0.0 (2019-06-03)
200-
201-
202-
### Features
203-
204-
* first version ([02620fb](https://github.com/NaturalCycles/mysql-lib/commit/02620fb))
205-
* init project by create-module ([eee50b7](https://github.com/NaturalCycles/mysql-lib/commit/eee50b7))
1+
See [Github Releases](https://github.com/NaturalCycles/mysql-lib/releases)

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"scripts": {
44
"prepare": "husky install"
55
},
6-
"peerDependencies": {
7-
"@naturalcycles/db-lib": ">=7.0.0"
8-
},
96
"dependencies": {
107
"@naturalcycles/db-lib": "^8.16.2",
118
"@naturalcycles/js-lib": "^14.47.0",

0 commit comments

Comments
 (0)