Swift library with our shared code
How to install
.package(url: "https://github.com/ydataai/swift-core.git", from: "master"),
👯‍♂️
About With
.package(url: "https://github.com/ydataai/swift-core.git", from: "master"),
With
Bumps actions/cache from 2 to 3.
Sourced from actions/cache's releases.
v3.0.0
This change adds a minimum runner version(node12 -> node16), which can break users using an out-of-date/fork of the runner. This would be most commonly affecting users on GHES 3.3 or before, as those runners do not support node16 actions and they can use actions from github.com via github connect or manually copying the repo to their GHES instance.
Few dependencies and cache action usage examples have also been updated.
v2.1.7
Support 10GB cache upload using the latest version
1.0.8
of@actions/cache
v2.1.6
- Catch unhandled "bad file descriptor" errors that sometimes occurs when the cache server returns non-successful response (actions/cache#596)
v2.1.5
- Fix permissions error seen when extracting caches with GNU tar that were previously created using BSD tar (actions/cache#527)
v2.1.4
v2.1.3
- Upgrades
@actions/core
to v1.2.6 for CVE-2020-15228. This action was not using the affected methods.- Fix error handling in
uploadChunk
where 400-level errors were not being detected and handled correctlyv2.1.2
- Adds input to limit the chunk upload size, useful for self-hosted runners with slower upload speeds
- No-op when executing on GHES
v2.1.1
- Update
@actions/cache
package tov1.0.2
which allows cache action to use posix format when taring files.v2.1.0
- Replaces the
http-client
with the Azure Storage SDK for NodeJS when downloading cache content from Azure. This should help improve download performance and reliability as the SDK downloads files in 4 MB chunks, which can be parallelized and retried independently- Display download progress and speed
4b0cf6c
Merge pull request #769 from actions/users/ashwinsangem/bump_major_version60c606a
Update licensed filesb6e9a91
Revert "Updated to the latest version."c842503
Updated to the latest version.2b7da2a
Bumped up to a major version.deae296
Merge pull request #651 from magnetikonline/fix-golang-windows-examplec7c46bc
Merge pull request #707 from duxtland/main6535c5f
Regenerated examples.md
TOC3fdafa4
Update GitHub Actions status badge markdown in README.md
341e6d7
Merge branch 'actions:main' into fix-golang-windows-exampleDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| vapor/vapor | minor | from: "4.61.1"
-> from: "4.67.4"
|
v4.67.4
: Fix encoding/decoding an array of dates with URL EncodingFixes a bug where an Array of Dates wouldn't be encoded or decoded when using URL encoding.
v4.67.3
: Fix Stream Callback never being called in closeFixes a bug where abandoned requests mean that the stream callback is never invoked. This happens when a client sends a request, the server starts processing it but hasn't constructed the Response
and then the client closes early. The response is discarded, as is the stream callback so it never gets invoked. This fixes that issue
v4.67.2
: Fix unused generator parameter in Array.random(count:using:)The generator
parameter in Array.random(count:using:)
was unused in what appears to be a copy-paste error. This change passes it down to FixedWidthInteger.random(using:)
, which was the original intention.
v4.67.1
: Fix 24h timeformat for expire
and last-modified
headerExpire
and Last-Modified
header were encoding the hour part in 12h format (hh
) instead of 24h format (HH
). This results in timestamps being 12 hours off for all afternoon hours. This fixes the format used to follow the spec correctly and adds tests to ensure no regressions.
v4.67.0
: Conforms Request.Body
to AsyncSequence
This PR wraps Request.Body.drain()
as a modern Swift AsyncSequence<ByteBuffer, Error>
.
This is useful to stream bytes from request rather than collecting them in memory. Example: A route could handle a multigigbyte file upload like this:
do {
let nioFileHandle = try NIOFileHandle(path: filePath, mode: .write)
var offset: Int64 = 0
for try await bytes in req.body {
try await req.application.fileio.write(fileHandle: nioFileHandle,
toOffset: offset,
buffer: bytes,
eventLoop: req.eventLoop).get()
offset += Int64(bytes.readableBytes)
try nioFileHandle.close()
}
} catch {
...
}
v4.66.1
: Migrate from Lock
to NIOLock
Lock
has recently been deprecated in favor of NIOLock
.
All Lock
s have been renamed to NIOLock
.
v4.66.0
: Prevent vapor from crashing during a crash in third-party code, obfuscating the real problemIf a third-party library or user defined code crashed a Vapor app, the Vapor Application deinit will crash the app before the real issue pops up. This leads to frustrating debug sessions
v4.65.2
: Fixing issue #​2755: updating config storage inside HTTPServerWe can update application.storage from within HTTPServer, this way we can keep any changes that happen to the configuration internally up-to-date with the application storage.
This possibly has the least changes and less surface of potential flaws, since we are only adding an extra param and working on top of it. However, now we are setting the application storage from within HTTPServer
, there is no issue with that, is just that now we have 2 places changing the storage for the config.
Resolves #​2755
v4.65.1
: Add missing protocol ExpressibleByStringLiteral
to HTTPHeaders.Name
Add missing protocol ExpressibleByStringLiteral
to HTTPHeaders.Name
. The implementation init(stringLiteral:)
was there, but the actual protocol was missing.
v4.65.0
: Implement support for custom verify callbacksMotivation
When using NIOSSL it is sometimes necessary to completely take over the certificate verification logic. NIOSSL exposes a callback for this, but it's currently hidden from Vapor users. We should let them get access to this callback.
Modifications
Result
Users can override client cert validation.
v4.64.0
: Add support for regular expression validationsValidate a regular expression pattern
Example:
struct TestContent: Codable, Validatable {
static func validations(_ validations: inout Validations) {
validations.add("numbersOnly", as: String.self, is: .pattern("^[0-9]*$"))
}
let numbersOnly: String
init(numbersOnly: String) {
self.numbersOnly = numbersOnly
}
}
v4.63.0
: Add documentation comments and a defaulting subscript to Storage
.The new subscript simplifies "provider" implementations that extend Application
and use its Storage
instance without complex initialization requirements:
extension Application {
public struct Foo {
final class Storage { /* content which needs no special initialization */ }
struct Key: StorageKey { typealias Value = Storage }
let application: Application
// Before:
var storage: Storage {
if self.application.storage[Key.self] == nil { self.initialize() }
return self.application.storage[Key.self]!
}
func initialize() { self.application.storage[Key.self] = .init() }
// After:
var storage: Storage { self.application.storage[Key.self, default: .init()] }
v4.62.2
: fix: validate each not taking required parameter into accountv4.62.1
: Fix CredentialsAuthenticator not receiving all the bodyThis is a workaround for #​2742. This ensures the request body is available in the middleware rather than it failing silently.
v4.62.0
: Conform Bool
to Content
Conform Bool
to Content
to allow Bool
types to be returned to the top level
app.get("isOK") { req in
return true
}
đź“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| vapor/fluent | minor | from: "4.4.0"
-> from: "4.6.0"
|
v4.6.0
: Update minimum Swift version to 5.5Also updates very ancient CI.
v4.5.0
: Add asyncCredentialsAuthenticator
to ModelCredentialsAuthenticatable
Adds asyncCredentialsAuthenticator
to ModelCredentialsAuthenticatable
to allow it to be overridden if needs be
đź“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.
🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.
.github/workflows/merge-main.yml
(github-actions).github/workflows/pull-request.yml
(github-actions)Package.swift
(swift)🔡 Renovate has detected a custom config for this PR. Feel free to ask for help if you have any doubts and would like it reviewed.
Important: Now that this branch is edited, Renovate can't rebase it from the base branch any more. If you make changes to the base branch that could impact this onboarding PR, please merge them manually.
With your current configuration, Renovate will create 2 Pull Requests:
renovate/vapor-fluent-4.x
main
2da106f46b093885f77fa03e3c719ab5bb8cfab4
renovate/vapor-vapor-4.x
main
2d54398d50951f177eb899c05154636e381f3bc6
âť“ Got questions? Check out Renovate's Docs, particularly the Getting Started section. If you need any further assistance then you can also request help here.
This PR has been generated by Mend Renovate. View repository job log here.
Bumps cycjimmy/semantic-release-action from 2 to 3.
Sourced from cycjimmy/semantic-release-action's releases.
v3.0.0
3.0.0 (2022-03-03)
Features
BREAKING CHANGES
- switch operating environment to node16
v2.7.0
2.7.0 (2021-12-12)
Features
- add working dir (7126083)
v2.6.0
2.6.0 (2021-10-15)
Features
- add output for last release version (f8175c6)
v2.5.4
2.5.4 (2021-04-30)
Bug Fixes
v2.5.3
... (truncated)
Sourced from cycjimmy/semantic-release-action's changelog.
3.1.2 (2022-10-19)
Bug Fixes
- actions: update
@​actions/core
to cope with new output (3e7aded)3.1.1 (2022-08-30)
Bug Fixes
- set last_release_version output even if no release has been published (b1467cd)
3.1.0 (2022-08-05)
Features
- handle versioned extends inputs correctly (4a51b9f)
3.0.0 (2022-03-03)
Features
BREAKING CHANGES
- switch operating environment to node16
2.7.0 (2021-12-12)
Features
- add working dir (7126083)
2.6.0 (2021-10-15)
Features
- add output for last release version (f8175c6)
2.5.4 (2021-04-30)
... (truncated)
8f6ceb9
chore(release): 3.2.0 [skip ci]a297eb1
Merge pull request #135 from dkhunt27/cycjimmy385af4f
feat: added gitHead and gitTag outputs17e74ff
Merge pull request #2 from cycjimmy/mainbdd914f
docs(README): update broken linksbe27b56
chore(release): 3.1.2 [skip ci]37e7c02
Merge pull request #129 from OlivierCuyp/main3e7aded
fix(actions): update @​actions/core
to cope with new output8139709
Merge pull request #126 from cycjimmy/dependabot/npm_and_yarn/actions/core-1....269aa6b
Merge pull request #124 from nickmccurdy/rename-to-mainDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Bumps actions/cache from 2 to 3.0.1.
Sourced from actions/cache's releases.
v3.0.1
- Added support for caching from GHES 3.5.
- Fixed download issue for files > 2GB during restore.
v3.0.0
This change adds a minimum runner version(node12 -> node16), which can break users using an out-of-date/fork of the runner. This would be most commonly affecting users on GHES 3.3 or before, as those runners do not support node16 actions and they can use actions from github.com via github connect or manually copying the repo to their GHES instance.
Few dependencies and cache action usage examples have also been updated.
v2.1.7
Support 10GB cache upload using the latest version
1.0.8
of@actions/cache
v2.1.6
- Catch unhandled "bad file descriptor" errors that sometimes occurs when the cache server returns non-successful response (actions/cache#596)
v2.1.5
- Fix permissions error seen when extracting caches with GNU tar that were previously created using BSD tar (actions/cache#527)
v2.1.4
v2.1.3
- Upgrades
@actions/core
to v1.2.6 for CVE-2020-15228. This action was not using the affected methods.- Fix error handling in
uploadChunk
where 400-level errors were not being detected and handled correctlyv2.1.2
- Adds input to limit the chunk upload size, useful for self-hosted runners with slower upload speeds
- No-op when executing on GHES
v2.1.1
- Update
@actions/cache
package tov1.0.2
which allows cache action to use posix format when taring files.v2.1.0
- Replaces the
http-client
with the Azure Storage SDK for NodeJS when downloading cache content from Azure. This should help improve download performance and reliability as the SDK downloads files in 4 MB chunks, which can be parallelized and retried independently- Display download progress and speed
Sourced from actions/cache's changelog.
3.0.1
- Added support for caching from GHES 3.5.
- Fixed download issue for files > 2GB during restore.
136d96b
Enabling actions/cache for GHES based on presence of AC service (#774)7d4f40b
Bumping up the version to fix download issue for files > 2 GB. (#775)2d8d0d1
Updated what's new. (#771)7799d86
Updated the usage and docs to the major version release. (#770)4b0cf6c
Merge pull request #769 from actions/users/ashwinsangem/bump_major_version60c606a
Update licensed filesb6e9a91
Revert "Updated to the latest version."c842503
Updated to the latest version.2b7da2a
Bumped up to a major version.deae296
Merge pull request #651 from magnetikonline/fix-golang-windows-exampleDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Bumps actions/checkout from 2 to 3.
Sourced from actions/checkout's releases.
v3.0.0
- Update default runtime to node16
v2.4.0
- Convert SSH URLs like
org-<ORG_ID>@github.com:
tohttps://github.com/
- prv2.3.5
Update dependencies
v2.3.4
v2.3.3
v2.3.2
Add Third Party License Information to Dist Files
v2.3.1
Fix default branch resolution for .wiki and when using SSH
v2.3.0
Fallback to the default branch
v2.2.0
Fetch all history for all tags and branches when fetch-depth=0
v2.1.1
Changes to support GHES (here and here)
v2.1.0
- Group output
- Changes to support GHES alpha release
- Persist core.sshCommand for submodules
- Add support ssh
- Convert submodule SSH URL to HTTPS, when not using SSH
- Add submodule support
- Follow proxy settings
- Fix ref for pr closed event when a pr is merged
- Fix issue checking detached when git less than 2.22
Sourced from actions/checkout's changelog.
Changelog
v2.3.1
v2.3.0
v2.2.0
v2.1.1
v2.1.0
- Group output
- Changes to support GHES alpha release
- Persist core.sshCommand for submodules
- Add support ssh
- Convert submodule SSH URL to HTTPS, when not using SSH
- Add submodule support
- Follow proxy settings
- Fix ref for pr closed event when a pr is merged
- Fix issue checking detached when git less than 2.22
v2.0.0
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
.github/workflows/merge-main.yml
actions/checkout v3
cycjimmy/semantic-release-action v3
actions/create-release v1
hugo19941994/delete-draft-releases v1.0.0
actions/create-release v1
.github/workflows/pull-request.yml
actions/checkout v3
swift-actions/setup-swift v1
actions/cache v3
Package.swift
vapor/vapor from: "4.67.5"
vapor/fluent from: "4.6.0"
chore(deps): update dependency vapor/vapor to from: "4.67.5"
Source code(tar.gz)chore(deps): update dependency vapor/vapor to from: "4.67.4" (#37)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Source code(tar.gz)chore(deps): update dependency vapor/fluent to from: "4.6.0" (#36)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Source code(tar.gz)fix(fabricerror): GenericFabricError from protocol (#33)
Source code(tar.gz)fix(internal-client): FabricError as response content for error (#32)
Source code(tar.gz)fix(bytebuffer): init method visibility (#31)
Source code(tar.gz)fix: revert to work with swift 5.6 (#30)
fix(fabricerror): GenericFabricError make name mandatory (#29)
Source code(tar.gz)fix(fabricerror): small fixes found during integration (#28)
feat(error): FabricError protocol and generic error (#27)
Source code(tar.gz)fix(internalresponse): update to new vapor response init (#26)
Source code(tar.gz)feat(optional): introduce tryMap to throw error when no value (#25)
Source code(tar.gz)feat: client context and string range (#22)
fix(http-client): error handling improvement (#24)
Source code(tar.gz)fix(http-client): internal response backward compatibility (#23)
Source code(tar.gz)chore(deps): bump actions/cache from 2 to 3 (#18)
Bumps actions/cache from 2 to 3.
updated-dependencies:
Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: LuĂs Portela Afonso [email protected]
Source code(tar.gz)chore(deps): bump actions/checkout from 2 to 3 (#15)
Bumps actions/checkout from 2 to 3.
updated-dependencies:
Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: LuĂs Portela Afonso [email protected]
Source code(tar.gz)feat(client): removed generic content from Request (#20)
Source code(tar.gz)fix(http-client): map for query builder (#19)
Source code(tar.gz)feat(http-client): http client wrapper (#17)
Source code(tar.gz)fix(context): split it to make it more modular (#14)
Source code(tar.gz)Core Data Generator Introduction Features Supported platforms Installation CDG Setup RepositoryType ModelType DataStoreVersion MigrationPolicy Basic U
⚠️ Since this repository is going to be archived soon, I suggest migrating to NSPersistentContainer instead (available since iOS 10). For other conven
A powerful and elegant Core Data framework for Swift. Usage Beta version. New docs soon... Simple do that: let query = persistentContainer.viewContext
CloudCore CloudCore is a framework that manages syncing between iCloud (CloudKit) and Core Data written on native Swift. Features Leveraging NSPersist
Unleashing the real power of Core Data with the elegance and safety of Swift Dependency managers Contact Swift 5.4: iOS 11+ / macOS 10.13+ / watchOS 4
HitList HitList is a Swift App shows the implementation of Core Data. It is the demo app of Ray Wenderlich's tech blog. For details please reference G
Core Data Query Interface (CDQI) is a type-safe, fluent, intuitive library for working with Core Data in Swift. CDQI tremendously reduces the amount o
DATAStack helps you to alleviate the Core Data boilerplate. Now you can go to your AppDelegate remove all the Core Data related code and replace it wi
CoreDataDemo This project server as a demo for anyone who wishes to learn Core Data in Swift. The purpose of this project is to help someone new to Co
Core Data Query Interface (CDQI) is a type-safe, fluent, intuitive library for working with Core Data in Swift. CDQI tremendously reduces the amount o
JSQCoreDataKit A swifter Core Data stack About This library aims to do the following: Encode Core Data best practices, so you don't have to think "is
JustPersist JustPersist is the easiest and safest way to do persistence on iOS with Core Data support out of the box. It also allows you to migrate to
QueryKit QueryKit, a simple type-safe Core Data query language. Usage QuerySet<Person>(context, "Person")
Skopelos A minimalistic, thread-safe, non-boilerplate and super easy to use version of Active Record on Core Data. Simply all you need for doing Core
Core Data Ensembles Author: Drew McCormack Created: 29th September, 2013 Last Updated: 15th February, 2017 Ensembles 2 is now available for purchase a
mogenerator Visit the project's pretty homepage. Here's mogenerator's elevator pitch: mogenerator is a command-line tool that, given an .xcdatamodel f
MagicalRecord In software engineering, the active record pattern is a design pattern found in software that stores its data in relational databases. I
Introduction Core Data Dandy is a feature-light wrapper around Core Data that simplifies common database operations. Feature summary Initializes and m
BNR Core Data Stack The BNR Core Data Stack is a small Swift framework that makes it both easier and safer to use Core Data. A better fetched results