summaryrefslogtreecommitdiff
tag namev0.34.0 (df3fa48ade1d16b1f3b050d5a514fafb1b3f2b93)
tag date2022-02-05 13:36:23 +0700
tagged byShulhan <ms@kilabit.info>
tagged objectcommit da62a60826...
downloadpakakeh.go-0.34.0.tar.xz
Release share v0.34.0 (2022-02-05)
=== Breaking changes * lib/sql: make the table migration customizable + -- In the method Migrate() we add parameter "tableMigration" which define the name of table where the state of migration will be saved. If its empty default to "_migration". -- === New features * lib/os: implement function to Extract compressed and/or archived file + -- The Extract function uncompress and/or unarchive file from fileInput into directory defined by dirOutput. This is the high level API that combine standard archive/zip, archive/tar, compress/bzip2, and/or compress/gzip. The compression and archive format is detected automatically based on the following fileInput extension: * .bz2: decompress using compress/bzip2. * .gz: decompress using compress/gzip. * .tar: unarchive using archive/tar. * .zip: unarchive using archive/zip. * .tar.bz2: decompress using compress/bzip2 and unarchive using archive/tar. * .tar.gz: decompress using compress/gzip and unarchive using archive/tar. The output directory, dirOutput, where the decompressed and/or unarchived file stored. will be created if not exist. If its empty, it will set to current directory. On success, the compressed and/or archived file will be removed from the file system. -- * lib/http: implement method Download() on Client + The Download method get a resource from remote server and write it into DownloadRequest.Output (a io.Writer). === Enhancements * lib/websocket: return error if parameter is empty on RegisterTextHandler + Previously, the RegisterTextHandler method return nil if method, target, or handler parameter is not set. This may cause confusion and hard to debug handler when no connection receive but the RegisterTextHandler does not have any error. === Chores * lib/http: change the test port for testing HTTP server + Previously, the test port for HTTP server is set to 8080 and may conflict with any service that running on the local (due to common use of 8080). + This changes it to 14832 and we make the full server address stored as global variable so any tests can references it. -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEzvGqh+M3psOQ3lVQ+FB+6RSKTOMFAmH+GvQACgkQ+FB+6RSK TOOc0Qf+N+ivb7ZsEKzZGNGYQ16Wm4JPywS+i3wB86x4meIS/HU4WvJwUkVRDWFR kdYMzM3gHyUOfveb2MQ6Bc0bi10QOxjvq3+348aK9fpD+JS0nc/UreWOyBJKXkzz zfH9ZXJqGJ+Gl1IfqTGvpjzGgE01O5BRbqGhvmVbCrxtpl1fy9ngoTRAXYiGTsB0 UsOypKvU1i6N3DG59HBEj23oeaWW3tigkVpJGyzujNjZZQ4yAQ7rymZwzfznrOr3 JmHv0o2el8r7g6TNPXelVtaNVlV6BwEYusl4qobn0sPq2PMpVwrEcmN+Vxddzzx9 Rmk7E3hOMe7GFXCXgU5YSsU5GBGOMA== =hh9z -----END PGP SIGNATURE-----